Posted by PHPVote 7 years ago
This method allow get the string length, given the string is an object.
$foo = "I'm from Venezuela";
echo $foo->length; // 18
echo $foo->length(); // 18
and so we could do with all objects of type string and his methods.