What is the function in PHP to delete the first 10 characters from a string?

To delete the first 10 characters from a string in PHP, you can use the substr() function. This function allows you to extract a substring from a given string starting from a specified position. By using substr() with a starting position of 10, you can effectively remove the first 10 characters from the string.

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