What is the difference b/w Countable and Non Countable Objects
问题 I am trying out to find difference b/w a countable and a non countable object First I found out the Type of object echo gettype($data["current_fiat_currency"]); Which is a Object But when i had checked that it is a countable object or not var_dump($data["current_fiat_currency"] instanceof Countable ); then it returns False Below is the object content var_dump($data["current_fiat_currency"]); object(stdClass)[2010] public 'id' => string '1399' (length=4) public 'currency_name' => string 'US