May be you have to use substr() function.
echo substr($string,$start_pos,$end_pos);
The above one will display the strings content from the starting position to the end position as specified as the arguments.
Example
$str="Example string";
if(strlen($str) > 5)
echo substr($str,0,5).'....';//To show there is more content
else
echo $str;
Ouptput
Examp….
4
solved Show a short version [closed]