note 28765 added to functions

From: Date: Thu, 23 Jan 2003 10:31:50 +0000
Subject: note 28765 added to functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-42637@lists.php.net to get a copy of this message
To devciti at yahoo dot com The section "returning values" of the docu says: ===== You can't return multiple values from a function, but similar results can be obtained by returning a list. function small_numbers() { return array (0, 1, 2); } list ($zero, $one, $two) = small_numbers(); ===== -- http://www.php.net/manual/en/functions.php http://master.php.net/manage/user-notes.php?action=edit+28765 http://master.php.net/manage/user-notes.php?action=delete+28765 http://master.php.net/manage/user-notes.php?action=reject+28765

« previous php.notes (#42637) next »