While I was trying to use count to see the number of elements on a object,
PHP count was returning me 1.
This is how I solved it.
$total = count((array)$objecto);
While I was trying to use count to see the number of elements on a object,
PHP count was returning me 1.
This is how I solved it.
$total = count((array)$objecto);