Quote:
Originally posted by Ed Sullivan
str_replace won't let me just check if the first character of the string is ";" ( ^; ) - try it and see.
|
Ah ok, forgot how regexp worked for a sec..
The only alternative I can think of is this:
Code:
if( substr( $buddylist, 0, 1 ) == ";" ) {
$buddylist = substr( $buddylist, 1 );
}
That will strip out leading ";". I think that's what you want to do, no?
I don't know if that's any faster, but you can try it out...