Re: How to determine the parameter is a 1 dimension array or not?
| From: | Mark Maggelet | Date: | Mon, 19 Feb 2001 18:56:27 +0000 |
| Subject: | Re: How to determine the parameter is a 1 dimension array or not? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40610@lists.php.net to get a copy of this message | ||
On Tue, 20 Feb 2001 02:45:12 +0800, Zenith (zenith@linuxmail.org)
wrote:
>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?
I guess you would call is_array() on one of the elements and if it
returns true you have a 2D array.
- Mark