FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » detection of 2d array?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: detection of 2d array? [message #183454 is a reply to message #183448] Sat, 26 October 2013 00:37 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  Thomas 'PointedEars'
Messages: 701
Registered: October 2010
Karma:
Senior Member
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(at)news(dot)demon(dot)co(dot)uk>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: detecting a file in use
Next Topic: Mysqli or PDO Persistent prepared statements
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 00:28:19 GMT 2024

Total time taken to generate the page: 0.04352 seconds