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

Home » Imported messages » comp.lang.php » Yet another error for some unknown reason
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Yet another error for some unknown reason [message #183091 is a reply to message #183086] Mon, 07 October 2013 17: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:

> (a) Set the array up as follows:
>
> $playme = array(
> array(1960,1,"title","artist","file"),
> array(1960,1,"title","artist","file"),
> array(1960,1,"title","artist","file")
> );
>
> _^_ By the way, this semi-colon is *NOT* *OPTIONAL*

An optional comma can be inserted after the last array() parameter, though,
which is useful when you have to initialize with more elements.

> […]
> Here's an amazing fact about PHP:

… and several other programming languages:

> The elements of an array do not have to all be of the same type!

ISTM that this naturally follows from using dynamic (run-time) instead of
static (compile-time) type-checking. [Java (which uses static type-
checking) can do this as well, but you have to wrap the value in an object
and have to use a wrapper class that accepts object references.]


PointedEars
--
When all you know is jQuery, every problem looks $(olvable).
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A general note on invalid.com and others like it
Next Topic: How to link properly?
Goto Forum:
  

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

Current Time: Sat Nov 23 19:36:41 GMT 2024

Total time taken to generate the page: 0.03712 seconds