The is_array() function is used to detect whether a variable is an array.
PHP version requirements: PHP 4, PHP 5, PHP 7
bool is_array (mixed $var)
Parameter description:
$var: The variable to be tested.
Returns TRUE if the detected variable is an array, otherwise returns FALSE.
The output is:
The variable $arr_site is an array