note 71819 deleted from functions.arguments by philip
| From: | philip@php.net | Date: | Thu, 30 Jun 2011 05:16:53 +0000 |
| Subject: | note 71819 deleted from functions.arguments by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181086@lists.php.net to get a copy of this message | ||
Note Submitter: adrian at suissse dot ch
----
Note that passing by reference doesn't speed up your php script. PHP is smart enough not to
simply copy data every time the language requires it. Rahter, PHP uses a reference and waits until
the copy (a copied variable or a copy used in a function) is actually used as a copy and creates one
then.