Possible Duplicate:
Where can I read about conditionals done with ? and :
I want do the following without using if else or a ternary operator:
if $_GET['a'] is not null then set $a= $_GET['a'] else set its value to "default".
I tried $a= $_GET['a'] || "default". but it doesnt work.
I remember seeing something like this in a code sample, but I can't recall now.