On 15 May 2007, at 13:09, mirod wrote: >> That and the fact that it's not actually N^2 :) > > Well, it is if strlen($str) is O(N), as it might well be in C for > example. Well quite - but it isn't O(N) in PHP, it's O(1). Which is why I said it's not N^2 :) (am I repeating myself here?) -- Andy Armstrong, hexten.net