tags:

views:

119

answers:

3

Hi,

How to check whether the PHP variable is an array? $value is my PHP variable and how to check whether it is an array?

+8  A: 

echo is_array($variable);

http://us3.php.net/is_array

rclanan
+2  A: 

php has function named is_array($var) which returns bool to indicate whether parameter is array or not http://ir.php.net/is_array

Adinochestva
+1  A: 

is_array — Finds whether a variable is an array

http://uk.php.net/is_array

Shoban