Real nude model photography scene. Classic method in PHP to determine whether a multi-dimensional array is empty.

WBOY
Release: 2016-07-29 08:46:55
Original
1387 people have browsed it

Copy code The code is as follows:


//Determine whether an array is empty
/**
array(
); empty
array(
array(
),
array(
),
array(
)
); empty
array(
array(
),
array(
array(
),
array(
1=>1
)
),
array(
)
); non-null
*/
function is_array_null($value)
{
if (empty($value))
{
return $value;
}
else
{
return is_array($value) ? array_map('array_null', $value) : addslashes($value);
}
}

The above introduces the classic method in PHP to determine whether a multi-dimensional array is empty, including the actual nude model photography scene. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template