On Mon, 18 Mar 2002, Marc Bleuler wrote:
> Im trying to replace the first two digits (41) from a telephone no. with a 0
> (zero), like 41763334455 should end wit 0763334455. Anybody a idea howto? My
> php programming experiance is not very high so if any body could provide a
> code example....

http://www.php.net/manual/en/function.ereg-replace.php

  $new_number = ereg_replace('^41', '0', $old_number);

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to