Re: Object literals in php?

From: Date: Tue, 06 Oct 2015 23:10:40 +0000
Subject: Re: Object literals in php?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-325166@lists.php.net to get a copy of this message
On Oct 6, 2015, at 2:29 PM, Aziz Saleh wrote:
On Tue, Oct 6, 2015 at 5:24 PM, Jeffry Killen <jekillen@prodigy.net> wrote: Hello: Is it possible to use anonymous arrays? function blah( a )
              {
                // doittoit
              }
blah(array('var')) // I have to review array creation syntax Thanks for attention JK --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I mean no disrespect, but did you even try running the code?
No; no offense taken; I would need to get refreshed on array creation syntax in this situation before trying it. I realized that the function def has parameter 'a' which I should have written $a ( I switch a lot between php and javascript development) JK

« previous php.general (#325166) next »