Re: ifsetor like expression in php6

From: Date: Sat, 26 Jan 2008 22:10:47 +0000
Subject: Re: ifsetor like expression in php6
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-34948@lists.php.net to get a copy of this message
Hi, Am Samstag, den 26.01.2008, 16:23 -0500 schrieb Robert Cummings: [...] > This doesn't work how you think... if $_GET['foo'] is set then the > return value is true and not the value of $_GET['foo']. Hm, check what happens: $b = array(false, false); var_dump($b[0] ?: "sdf"); This will return "sdf", not bool(false). cu, Lars -- »Aber das Verhältnis von Leben und Produktion, das jenes real herabsetzt zur ephemeren Erscheinung von dieser, ist vollendet widersinnig. Mittel und Zweck werden vertauscht.« -- Theodor W. Adorno, »Minima Moralia«, Die traurige Wissenschaft Lars Strojny Nießenstr. 36 51103 Cologne Jabber/Mail: lars@strojny.net Weblog: http://usrportage.de

Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc
« previous php.internals (#34948) next »