substr — Return portion of a string
let's look at the example and get first 100 characters of the string
<?php $big_str = "you want to get 100 characters(portion ) of a string you should use substr function of PHP. then rest of the string will not be shown"; echo substr($big_str, 0, 100); ?>
Loading, please wait...