tedd wrote: > > Your solution had 61 iterations (for loop) while mind had only 21, so > mine's a bit faster. Here's the comparison: > > http://php1.net/b/fridays/ > > But I'll use your solution -- it's more elegant. > > Thanks for the code, > > tedd > Actually, if you refresh your page you have different winners. When I first visited the page yours was fastest by approximately .001, but on refresh yours is slower by .001. You need to execute the test let's say 100 or 1000 times or more (more is better) and take either the average or I would say the minimum. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php