PHP Substr-2.Php – String Function

<?php
   $car = "2009 Ford";
   echo substr($car, 0, 4);
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.