On Mon, 26 Feb 2001 11:57:04 -0800, Brandon Orther
([EMAIL PROTECTED]) wrote:
>Hello,
>
>Is there a way to remove the first numbers of a string? Here is an
>example:
>
>$string1 = "12 this is number twelve";
>when done: " this is number twelve";
>
>$sting1 = "123 this is number one twenty three"
>when done: " this is number one twenty three";
$string1=ereg_replace("^[0-9]+","",$string1);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]