Dell Sala wrote:
> BTW: if this string is build by a loop, there is another idiom that I  
> find cleaner than stripping off the last separator: Build text as an  
> array, then implode it.

Some informal benchmarking on my own showed that creating and imploding 
the array generally takes longer than appending and stripping, depending 
on the number of iterations in the loop: for fewer iterations, use 
append-and-strip; for more iterations, use and array and implode.

-- 
Allen Shaw
Polymer (http://polymerdb.org)
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to