In PHP what would be the best method of counting how many rows are contained in the following:-
object(stdClass)#5 (1) {
["GetMediaListResult"] => object(stdClass)#6 (1)
{
["string"] => array(3)
{
[0] => string(5) "1.mp4"
[1] => string(5) "2.mp4"
[2] => string(5) "3.jpg"
}
}
}
obviously the answer is 3 but how to get this in a PHP program?