What is the function in PHP to remove the first character from a string?

To remove the first character from a string in PHP, you can use the substr() function. This function allows you to extract a substring from a string starting from a specified position. To remove the first character, you can use substr() with a start position of 1.

$string = "Hello World";
$newString = substr($string, 1);
echo $newString; // Output: "ello World"