/**
* Determine whether a multi-dimensional array is considered to be empty.
*
* @author kleingeist
* @param mixed $mixed Array or variable to be checked.
* @return bool Returns FALSE if mixed has a non-empty and non-zero value.
* @link http://php.net/manual/en/function.empty.php
*/
function array_empty($mixed) {
if (is_array($mixed)) {
foreach ($mixed as $value) {
if (!array_empty($value)) {
return false;
}
}
}
elseif (!empty($mixed)) {
return false;
}
return true;
}
Content
-
Comments
- marthafines on phpbb.com gehacked über phplist lücke?
Merry Christmas to all... and to all a good night. …
- BHF on Wir sind friedlich, was seid ihr?
tja sowas ist nie schön. wirklich nicht. Bernd Helmut Frank …
- kleingeist on Winterschlaf
Hihi, ja, dich meinte ich :) Es freut mich, dass ich dich nun d …
- 's Annikäle on Winterschlaf
Ich weiß wen du meinst! Ich weiß wen du meinst! Bzw. ich bilde mi …
- kleingeist on Homeboys in der 4. Dimension
Na Super. Das nenn ich mir doch gekonnten und produktiven Umgang …
- marthafines on phpbb.com gehacked über phplist lücke?


