note 66677 deleted from function.return by didou

From: Date: Tue, 23 Jan 2007 00:57:03 +0000
Subject: note 66677 deleted from function.return by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-122049@lists.php.net to get a copy of this message
Note Submitter: jasper at jtey dot com ---- You can use alternate "if statement" syntax within a return statement itself: <?php // Return the minimum of two numbers function min($a, $b){ return $a < $b ? $a : $b; } ?>

« previous php.notes (#122049) next »