tags:

views:

118

answers:

1

How to find a variable is of type array in cakephp?

thanks

+9  A: 

Use PHP's is_array function:

if(is_array($var)) {
    //do something
}
karim79