I'm drowning in PHP

Jonathan Rockway jon at jrock.us
Tue May 15 11:04:43 BST 2007


On Monday 14 May 2007 10:12:31 pm Andy Armstrong wrote:
> This is a small gem from some PHP I'm obliged to look at:
>      for($i=0; $i<strlen($str); $i++) {

Ah, the classic O(n^2) for loop.  Haven't seen that one for quite a while, 
especially not in a language with built-in regexes.  Gotta love PHP...

-- 
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;


More information about the london.pm mailing list