php function to trim off first character code example Example: php pop off the first character of string $str = substr($str, 1);