|
Posted by Andy Jeffries on 06/21/06 08:14
On Tue, 20 Jun 2006 13:14:20 -0700, Ken Robinson wrote:
> I would use temporary arrays and the implode() function, and a switch
> statement instead of the if/elseif:
Hi Ken,
OK, your function is the slowest of those posted so far, completing the
larger data set from my timing post in 0.9498 seconds (compared to 0.5357
seconds for Juliette, 0.8106 for Rik's function version and
0.1960 for Rik's regex).
But yours also has no errors and produces the correct output (with the
only other one being Rik's regex version).
Cheers,
Andy
--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos
Navigation:
[Reply to this message]
|