Hi,
"Christopher J. Crane" <[EMAIL PROTECTED]> wrote:
[snip]
> If that number start with a "S", I want to strip it off.
[/snip]
Why don't you just check whether the first character is an "S" then
return only the rest of the string if it is? Like:
<?php
$my_string = 'S12345';
if ($my_string{0} == 'S'){
$rest_of_the_string = substr($my_string, 1);
}
echo $rest_of_the_string;
?>
Of course, there could be some other way...
- E
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php