I have the string "MYPART0123456789"
I want to search it for the first occurance of a character within the range [0-9], and return everything after that (0123456789).
I have experimented with strstr, but I need to pattern match.
I know the code below won't work, but I can't get any further.
I want to search it for the first occurance of a character within the range [0-9], and return everything after that (0123456789).
I have experimented with strstr, but I need to pattern match.
I know the code below won't work, but I can't get any further.
Code:
$pattern = preg_match('/^[A-Z]/', $s);
$s= 'MYPART0123456789';
echo strstr($s, $pattern);