Here I have a string: "status; status;" and so on... I need to cut the string from the status where string is longer than 100 chars
for example: "status; status; status; (here is longer than 100 chars) ..."
previously I did it with the array:
if($length_of_string > 100)
{
$number_of_elements = count($statuses_array);
echo $statuses_array[$number_of_elements-1];
echo ' ... ';
} else {
echo $string_of_statuses;
}
but it is not good
thank you in advance!