ternary operator, increasing vars.
#4

Ternary operators are used to return values, not expressions.

Example
PHP Code:
new var;
printf("Variable is %s", var == ? ("Off") : ("On")); 
will print "Variable is Off"
Reply


Messages In This Thread
ternary operator, increasing vars. - by EV007 - 07.10.2012, 16:18
Re: ternary operator, increasing vars. - by ReneG - 07.10.2012, 16:32
Re: ternary operator, increasing vars. - by EV007 - 07.10.2012, 16:34
Re: ternary operator, increasing vars. - by ReneG - 07.10.2012, 16:45

Forum Jump:


Users browsing this thread: 2 Guest(s)