I need to count the number of charachters in a string, as im making my own template script, and i need it to locate the tags and how far to cut - for use with the row tags in tables.
My current code is:
<?
$string="hrfghtphfgsdfjfdj";
print_r (array_sum(array_values(count_chars($string,1))));
?>
Which is hefty. It will return "17" which is what i wanted, but its very lengthy!
Is there a function out there that is designed to do just this? I've spent a long time looking on php.net - and this is all i managed to find.