Display 25 chars per line up to 4 lines only. I am doing a little array, but cant figure it out how to control to display the number of lines. I want to control the numer of lines to display to only 4 and 25 characters per line in a table.
Somewhere here in the code below : $types_temp2[] = $categories[$value]['title'];
I need to be able to limit the display to only 25 characters per line up to 4 lines only. Can you help? I did a few tricks but it mostly trunkates characters but continue to the last lines which often runs into about 20 lines.
Thank you for your help.
$types_temp = array();
$types_temp2 = array();
$types_temp3 = array();
$types_temp = explode(',', $info['project_types']);
foreach ($types_temp as $value)
{
if(isset($categories[$value]['title']))
{
$types_temp2[] = $categories[$value]['title'];
}
}
$types_temp3 = implode(', ', $types_temp2);