first character of string delete php code example
Example 1: remove first letter php
<?php
echo substr('abcdef', 1); // bcdef
?>
Example 2: php pop off the first character of string
$str = substr($str, 1);
Example 3: php remove everything after character
$fullpath = 'folderName/file.ext';
$folder = substr($fullpath, 0, strpos($fullpath, '/'));
echo $folder;
// Output => folderName