I\'m trying to use return in a ternary operator, but receive an error:
Parse error: syntax error, unexpected T_RETURN
Here\'s the code:
No, that's not possible. The following, however, is possible:
$e = $this->return_errors(); return ( !$e ) ? '' : array( false, $e );
Hope that helps.