Get the App
SLTechnology News&Howtos  ›  Development  › 

The usage of is_array () in php

Shulou Source: shulou.com Published: 2022-06-03 11:44:13 11月15日 Update

This article mainly explains "the usage of is_array () in php". The content of the explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn the usage of is_array () in php.

Operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer

Php is_array () function

The PHP is_array () function is used to determine whether a variable is an array. Its syntax format is as follows:

Bool is_array (mixed $var)

Parameter description:

Var: the variable to be detected.

Return value

Returns TRUE if the detected variable is an array, FALSE otherwise.

Examples of the use of this function are as follows:

Output result:

Thank you for your reading. The above is the content of "the usage of is_array () in php". After the study of this article, I believe you have a deeper understanding of the usage of is_array () in php, and the specific use needs to be verified by practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Functions variables learning content arrays tests parameters that is ideas situations tutorials articles more formats environments computers knowledge knowledge points examples articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Information Redmi Shulou Technology vpn