They're certainly logically equivalent if we disregard the short-circuiting nature of operators. (Though the mathematics branch of logic generally deals with no other return values than true and false...)$var = $var || func( $var ); $var = func( $var ) || $var;
In reply to Re^7: Variable assignment error checking
by Anonymous Monk
in thread Variable assignment error checking
by nathaniels
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |