I have an array like,
$words = array ('This', 'is', 'a', '', '', '', 'string');
and I was looking for a function that counts characters of the first two parts,
in this case, this
and is
should be counted . the result for these two will be 5. I know that I can simply do a
for
, but the problem is I want to count them and if they reach 70 characters or higher then I want to put the rest on a new line.
Any help would be highly appreciated.