SyntaxFix
Write A Post
Hire A Developer
Questions
count() function works with array. But if you want to count object's length then you can use this method.
count()
$total = $obj->length;