I'm drowning in PHP
andy at hexten.net
Tue May 15 10:16:14 BST 2007
On 15 May 2007, at 08:31, Matt Wilson wrote:
>> Either written by a C programmer or naively converted from C I'd say.
> Possibly. Or somebody who's just learning to code. I've seen much
> worse during some of my PHP work though.
Oh yeah. It just reached me at exasperation point last night.
>> Bear in mind that PHP /does/ have regex support.
> $str = preg_replace ( $str, "/^0+/", "" );
> IIRC, though the parameters may be in the wrong order :)
And, unluckily for you, you hit one of those PHP functions where the
order of the parameters matter :)
Andy Armstrong, hexten.net
More information about the london.pm