You are here: Re: Change alternate commas to semi colons... « PHP Programming Language « IT news, forums, messages
Re: Change alternate commas to semi colons...

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация