PHP Extracting Substring With Substr() – String Function

<?php
$substring = substr($string,$start,$length);
$username = substr($_GET['username'],0,8);
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.