Hi,
I need to strip a leading zero from a string.
I've tried using preg_split to do it, but I can't get anywhere with it. Any ideas?
A typical string would be 07777999444.
Cheers,
StuG
$num = '07777999444'; $st = ereg_replace("(0)", "", $num);
Cheers Chris,
So in theory, I could use:
$num = ereg_replace("(0)", "", $num);
Or could I?
yep
Cheers, works like a dream!