Assignment and simple conditional:
$tacos = buy_taco( 3 ); if ( $tacos ) { eat_lunch( $tacos ); }
Does this shorthand approach have a name?
Any drawbacks or gotchas?
if ( $tacos = buy_taco( 3 ) ) { eat_lunch( $tacos ); }