Copy code The code is as follows:
//Determine whether an array is empty
/**
array(
); 空
array(
array(
),
array(
),
array(
)
); 空
array(
array(
),
array(
array(
),
array(
1=>1
)
),
array(
)
); 非 空
*/
function is_array_null($value)
{
if (empty($value))
{
return $value;
}
else
{
return is_array ($value) ? array_map('array_null', $value) : addslashes($value);
}
}
http://www.bkjia.com/PHPjc/324327.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/324327.htmlTechArticleCopy code The code is as follows: //Judge whether an array is empty/** array( ); empty array( array ( ), array( ), array( ) ); empty array( array( ), array( array( ), array( 1=1 ) ), array( )...