PHP is_countable() Function

PHP is_countable() Function


The is_countable() function is an inbuilt function in PHP which is used to check whether the content of the variable is countable or not.

Syntax:

bool is_countable ( mixed $var )

Parameters: This function accepts one parameter as mentioned above and described below:

  • $var: This parameter holds the value which need to be checked.