how can print string character in php code example
Example 1: php limit string length
if (strlen($str) > 10)
$str = substr($str, 0, 7) . '...';
Example 2: print only some characters of a string in php
substr(string,start,length)
if (strlen($str) > 10)
$str = substr($str, 0, 7) . '...';
substr(string,start,length)