Needing to remove a few characters
Moderator: General Moderators
Needing to remove a few characters
I need to remove the first two characters from a string, how do I do that?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Code: Select all
$string = 'blahblah';
echo substr($string, 2);Why is this code:
Giving me this error:
Code: Select all
$b-uid = substr($_COOKIE["cg_uid"], 2);Code: Select all
Parse error: parse error, unexpected '='- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: