Hello, I have a script that does this
[code]
#if no countrycode, add 33 ,we should also need add national code
if ($clilen <11)
{
$formated_fromnum ="33".$fromnum ;
} else
{
$formated_fromnum =$fromnum ;
}
[/code]
i want the same script that adds 33 in front of $fromnum but also remove the 0 if the first number in $fromnum is a 0.
So before is $fromnum = 0123456789, $formated_fromnum would = 330123456789
now it should be : $fromnum = 0123456789, $formated_fromnum would = 33123456789
but if $fromnum = 1234567890, then $formated_fromnum stay = 331234567890 (no change becoz the 1st char s not a 0)
This is urgent.
Thx