Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #11584
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: detection of 2d array? |
| Date | 2013-10-25 14:58 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <l4e0un$99a$2@dont-email.me> (permalink) |
| References | <7x8n4ftkdpt.13nclqr4ren29.dlg@40tude.net> |
On Thu, 24 Oct 2013 17:39:44 -0400, richard wrote:
> given the example>>>
>
> array=("item","photo"),
> array=("item",array=("photo1","photo2")),
> array=("item","photo")
>
> Is there any way of knowing when an array item has a subarray item?
Yes. PHP contains several functions that can be used to determine the
type of a variable, and as an array element is just another variable,
these can be applied at the array element level.
http://www.php.net/manual/en/ref.var.php
--
Denis McMahon, denismfmcmahon@gmail.com
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
detection of 2d array? richard <noreply@example.com> - 2013-10-24 17:39 -0400
Re: detection of 2d array? "J.O. Aho" <user@example.net> - 2013-10-25 00:10 +0200
Re: detection of 2d array? richard <noreply@example.com> - 2013-10-24 18:12 -0400
Re: detection of 2d array? Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-25 14:58 +0000
Re: detection of 2d array? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-10-26 02:37 +0200
Re: detection of 2d array? Struchkov Vladimir <struchkov@gmail.com> - 2013-11-06 05:24 -0800
Re: detection of 2d array? Jerry Stuckle <jstucklex@attglobal.net> - 2013-11-06 17:04 -0500
csiph-web