note 94152 added to function.is-array
| From: | Anonymous at osu1 dot php dot net | Date: | Mon, 19 Oct 2009 22:10:53 +0000 |
| Subject: | note 94152 added to function.is-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-161889@lists.php.net to get a copy of this message | ||
If you would like to be able to check multiple variables at the same time, similar to isset, use the
following:
<?php
function isarray() {
$A = func_get_args();
foreach ($A as $k => $v) {
if (!is_array($v)) {
return false;
}
}
return true;
}
?>
----
Server IP: 192.41.40.227
Probable Submitter: 76.25.107.41
----
Manual Page -- http://www.php.net/manual/en/function.is-array.php
Edit -- https://master.php.net/note/edit/94152
Del: integrated -- https://master.php.net/note/delete/94152/integrated
Del: useless -- https://master.php.net/note/delete/94152/useless
Del: bad code -- https://master.php.net/note/delete/94152/bad+code
Del: spam -- https://master.php.net/note/delete/94152/spam
Del: non-english -- https://master.php.net/note/delete/94152/non-english
Del: in docs -- https://master.php.net/note/delete/94152/in+docs
Del: other reasons-- https://master.php.net/note/delete/94152
Reject -- https://master.php.net/note/reject/94152
Search -- https://master.php.net/manage/user-notes.php