On Thu, Apr 21, 2011 at 12:56 AM, Arpad Ray <array...@gmail.com> wrote:
> I've pined for something like coalesce($_GET['foo'], $defaults['foo'],
> 42) for years, and I think that style is far more in keeping with the
> PHP ethos, and far more readily understandable than this suggested new
> syntax.
>

To elaborate, I'd probably think this code was an unlikely series of
typos, or an encoding error:

$var = $_GET[?'var'] $: $_POST[?'var'] $: 'default';

But as a PHP coder, I'm quite familiar with how coalesce() works.

Regards,

Arpad

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to