note 50950 added to language.references
| From: | Carlos at osu1 dot php dot net | Date: | Mon, 14 Mar 2005 20:09:57 +0000 |
| Subject: | note 50950 added to language.references | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-86435@lists.php.net to get a copy of this message | ||
in the example below, you would get the same result if you change the function to something like:
function test_ref(&$arr) {
$time = time();
$size = sizeof($arr); // <--- this makes difference...
for($n=0; $n<$size; $n++) {
$x = 1;
}
echo "<br />The function using a reference took ".(time() - $time)."
s";
}
----
Manual Page -- http://www.php.net/manual/en/language.references.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50950
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50950&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50950&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50950&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50950&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50950&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50950&report=yes
Search -- http://master.php.net/manage/user-notes.php