substr() function is used to extract a part of a string.

<?php
$var_string = "Hello, world!";
$substring = substr($var_string, 7);
echo $substring;
?>

Extract a part of the string starting from position 7 .

Output:

world!