PHPis_array () checks whether the variable is an array implementation method, is_array array. PHPis_array () is used to check whether the variable is an array. the is_array array is_array () PHPis_array () function is used to check whether the variable is an array. This function is especially used for PHP is_array () security () check whether the variable is an array implementation method, is_array array
Is_array ()
The PHP is_array () function is used to check whether a variable is an array. This function is especially used for security checks (such as form or SESSION checks ).
Syntax:
Bool is_array (mixed var) returns TRUE if var is array; otherwise, FALSE.
Example:
<? Php $ arr_age = array (18, 20, 25); if (is_array ($ arr_age) {echo 'variable $ arr_age is an array ';} else {echo 'variable $ arr_age is not an array';}?>
Run the sample output:
The variable $ arr_age is an array.
The above PHP is_array () check whether the variable is an array implementation method is all the content that I have shared with you. I hope to give you a reference and hope you can provide more support to the customer's house.
Http://www.bkjia.com/PHPjc/1136650.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1136650.htmlTechArticlePHP is_array () checks whether the variable is an array of implementation method, is_array array is_array () PHP is_array () function is used to detect whether the variable is an array, this function is especially used for some security...