There's no LIMIT to my SPLITting headache.

A

Anno Siegel

Mark Seger said:
$a="abcdefghijklmnopqrstuvwxyz";
for ($i=0; $i<3; $i++) { $a.=$a; }

Better written as

$a = 'abcdefghijklmnopqrstuvwxyz' x 3;

or even

$a = join( '', 'a' .. 'z') x 3;

Just a side note.

Anno
 
M

Mark Seger

$a="abcdefghijklmnopqrstuvwxyz";
Better written as

$a = 'abcdefghijklmnopqrstuvwxyz' x 3;

or even

$a = join( '', 'a' .. 'z') x 3;

indeed. much better (and less typing too!) :cool:
although, to be more precise you'd need an 8 not a 3 to get the same
results 9-)
-mark
 
A

Anno Siegel

Mark Seger said:
indeed. much better (and less typing too!) :cool:
although, to be more precise you'd need an 8 not a 3 to get the same
results 9-)

Oh, right. "... x 2**3" then.

Anno
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top