I created a PHP page that show names from a table, there is some names is too long, I want to make if $name
is 12 characters then replace what after 12 characters with ...
this is my code
$query= mysql_query("SELECT * FROM `table`")or die(mysql_error());
while($arr = mysql_fetch_array($query)){
$num = mysql_num_rows($query);
$name= $arr['name'];
echo '</br>';
echo $name;
}
How can I do it?