Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #11590
| Message-ID | <7044722.OSoFHnGXHP@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2013-10-26 02:37 +0200 |
| Subject | Re: detection of 2d array? |
| Newsgroups | comp.lang.php |
| References | <7x8n4ftkdpt.13nclqr4ren29.dlg@40tude.net> <l4e0un$99a$2@dont-email.me> |
Denis McMahon wrote:
> 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")
… which is not even syntactically valid PHP code …
>> 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
Nonsense again. An array element is _not_ a variable. The correct answer
has been given by J.O. Aho.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7@news.demon.co.uk>
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