Forum Moderators: coopster
$_action = isset($_REQUEST['action'])? $_REQUEST['action'] : 'view';
I dug through PHP manuals, the documentation, trying to figure out how it works.... just impossible to search for "? " efficiently >.>
Theory!
"? " is simply a quick "if" in variable assignment
Still no idea what " : " is.
The expression (expr1)? (expr2) : (expr3) evaluates to expr2 if expr1 evaluates to TRUE, and expr3 if expr1 evaluates to FALSE.
Hope this helps ;)