note 54847 added to language.variables.scope
| From: | www dot php dot net dot 2nd at mailfilter dot com dot ar | Date: | Sun, 17 Jul 2005 13:43:35 +0000 |
| Subject: | note 54847 added to language.variables.scope | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92078@lists.php.net to get a copy of this message | ||
To the bemused poster: Of course you can't compare processing times between functions/no
functions. I only wanted to see the difference between referenced and copied variables in different
scenarios. Tests are only meant to compare between pairs (i.e., call a function with & and call
the same function without &). I did 4 individual pairs of tests, so test 1 compares to test 2,
test 3 compares to test 4, test 5 compares to test 6 and test 7 compares to test 8. The strlen()
call was there only to make sure the value is actually accessed.
----
Manual Page -- http://www.php.net/manual/en/language.variables.scope.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54847
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54847&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54847&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54847&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54847&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54847&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54847&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54847&report=yes
Search -- http://master.php.net/manage/user-notes.php