Re: Finding numerical values in a string
| From: | Joseph Blythe | Date: | Thu, 31 Aug 2000 11:02:39 +0000 |
| Subject: | Re: Finding numerical values in a string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14562@lists.php.net to get a copy of this message | ||
> There's probably a more eloquent way to do this, but IF you know the
length of the part before the number you could use substr to return the
rest.
>
> So, if all $foo values begin with "notavail" you could use:
>
> if ( $Pid == "notavail".substr($foo,8) ) {
> ...
> }
Hey,
Thanks this works just fine :-)
Regards
Joseph