PHP Negative Substr() Length Parameter – String Function

<?
$car = "1234567890";
$yr = substr($car, 2, -5);
print $yr;
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.