[UPHPU] short syntax without the else?
Brady Mitchell
mydarb at gmail.com
Sat Jan 19 23:44:09 MST 2008
On Jan 19, 2008, at 1028PM, Dave Smith wrote:
> Brady Mitchell wrote:
>> Keep in mind that this is a bit more difficult read than the
>> standard:
>>
>> if($condition == false && $var == "foo")
>> {
>> echo false
>> }
>> else
>> {
>> echo "foo";
>> }
>
> That's not what my code does at all. You might want to read over it
> again. Maybe that just reinforces your point about readability. :)
Yeah, that'll teach me to respond to code related emails when I'm
tired. :)
More information about the UPHPU
mailing list