remove the first element of a string in php code example Example: php pop off the first character of string $str = substr($str, 1);