Re: Why PHP sucks - farce or is there a bit of truth?
| From: | Tim-Hinnerk Heuer | Date: | Fri, 18 Oct 2013 01:15:45 +0000 |
| Subject: | Re: Why PHP sucks - farce or is there a bit of truth? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-322307@lists.php.net to get a copy of this message | ||
On 18 October 2013 14:05, Tim-Hinnerk Heuer <th.heuer@gmail.com> wrote:
> (a == 1) ? "one" : (a == 2) ? "two" : "three"
Same in JS:
$ node
> a = 1;
1
> (a == 1) ? "one" : (a == 2) ? "two" : "three"
'one'
Tim-Hinnerk Heuer
Twitter: @geekdenz
Blog: http://www.thheuer.com