Needing to remove a few characters
Posted: Mon Jun 19, 2006 2:09 pm
I need to remove the first two characters from a string, how do I do that?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
substrCode: Select all
$string = 'blahblah';
echo substr($string, 2);Code: Select all
$b-uid = substr($_COOKIE["cg_uid"], 2);Code: Select all
Parse error: parse error, unexpected '='