note 18153 added to functions
| From: | a dot filatow at numlock dot de | Date: | Sat, 12 Jan 2002 05:16:30 +0000 |
| Subject: | note 18153 added to functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24731@lists.php.net to get a copy of this message | ||
Simple way to return Arrays:
function ArrayReturn(&$x)
{
$x[] = 1;
$x[] = 2;
$x[] = 3;
$x[] = 4;
$x[] = 5;
$x[] = 6;
return;
}
ArrayReturn($x);
for ($i = 0; $i <sizeof ($x); $i++)
echo $x[$i], ",";
--
http://www.php.net/manual/en/functions.php
http://master.php.net/manage/user-notes.php?action=edit+18153
http://master.php.net/manage/user-notes.php?action=delete+18153
http://master.php.net/manage/user-notes.php?action=reject+18153