Re: How to determine the parameter is a 1 dimension array or not?
| From: | php3 at developersdesk dot com | Date: | Mon, 19 Feb 2001 19:02:32 +0000 |
| Subject: | Re: How to determine the parameter is a 1 dimension array or not? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-40611@lists.php.net to get a copy of this message | ||
Addressed to: "Zenith" <zenith@linuxmail.org>
php-general@lists.php.net
** Reply to note from "Zenith" <zenith@linuxmail.org> Tue, 20 Feb 2001 02:45:12
+0800
>
> In a self defined function, a one dimension or two dimension array may be
> passed,
> How can I check that, the passed in array is a one dimension array or a two
> dimension array?
If an element of $array[x] returns 'ARRAY' it is multi dimensional. You
may have to check my capitolization. Try looking at $array, a known
array and see what it returns in an echo.
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com