Re: Lets nock off any numbers at the begging of a string...
| From: | Mark Maggelet | Date: | Mon, 26 Feb 2001 20:38:07 +0000 |
| Subject: | Re: Lets nock off any numbers at the begging of a string... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41736@lists.php.net to get a copy of this message | ||
On Mon, 26 Feb 2001 11:57:04 -0800, Brandon Orther
(brandon@webintellects.com) 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);