Jay Fitzgerald <mailto:[EMAIL PROTECTED]> on Saturday, August 09, 2003 10:05 PM said:
> I am a somewhat slow learner in that I cannot learn from reading - the > stuff on functions, for example, is confusing to me - I can only learn > by examples with explanations of why certain things are done. I have found that while loops* are faster than for loops**. . concatenation*** is faster than , concatenation****, and both are faster than spaghetti code*****. Post more questions if you need help with other things. Or just email me off list and I'll help you out (if I can). Also, to anyone else that has differing opinions on what I think is fast I'd like to send you the file I'm using to test this out. Consistently while loops are fast than for loops AND . concatenation is consistently faster than , and spaghetti. I'd be interested to hear what othe people have to say. > ========================================== > > Jay Fitzgerald, Design Director ... Wow, your sig is WAY too long! HTH, chris. * while loop $ctr = 0; $val = 0; while($ctr<100000) { $val++; $ctr++; } ** for loop $val = 0; for($ctr=0;$ctr<100000;$ctr++) { $val++; } *** . concatenation $myString = "Hello this is my string." ." This is more of my string." ." And even more of my string." ." And even more of my string." ." And even more of my string." ." And even more of my string." ." And even more of my string." ." And even more of my string." ." And even more of my string." ." And even more of my string." ." And even more of my string." ." And even more of my string." ." And even more of my string."; **** , concatenation $myString = "Hello this is my string." ," This is more of my string." ," And even more of my string." ," And even more of my string." ," And even more of my string." ," And even more of my string." ," And even more of my string." ," And even more of my string." ," And even more of my string." ," And even more of my string." ," And even more of my string." ," And even more of my string." ," And even more of my string."; ***** spaghetti code Hello this is my string. <? echo "This is more of my string."; ?> And even more of my string. <? echo "And even more of my string."; ?> And even more of my string. <? echo "And even more of my string."; ?> And even more of my string. <? echo "And even more of my string."; ?> And even more of my string. <? echo "And even more of my string."; ?> And even more of my string. <? echo "And even more of my string."; ?> And even more of my string. <? echo "And even more of my string."; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php