note 109942 deleted from functions.returning-values by aharvey

From: Date: Wed, 05 Sep 2012 02:12:57 +0000
Subject: note 109942 deleted from functions.returning-values by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190500@lists.php.net to get a copy of this message
Note Submitter: krzysiek dot 333 at gmail dot com ---- You don't need to use own function to reverse string, because this is already in PHP-functions: http://www.php.net/manual/en/function.strrev.php ============== My alternative way to return multiple values: <?php function small_numbers() { return array ('zero' => 0, 'one' => 1, 'two' => 2); } extract(small_numbers()); var_dump($zero, $one, $two); //int(0) int(1) int(2) ?>

« previous php.notes (#190500) next »