note 83991 added to function.settype
| From: | mtinsley at dallasairmotive dot com | Date: | Sun, 22 Jun 2008 20:36:11 +0000 |
| Subject: | note 83991 added to function.settype | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140723@lists.php.net to get a copy of this message | ||
Yes, just look for the ampersand (&) in the function signature. Here you see:
bool settype ( mixed &$var , string $type )
There is an & before the first parameter ($var). This means the variable is passed in by
reference. So the function is working with the original variable and not a copied local version. You
will see this in other php functions such as asort();
References Explained: http://us3.php.net/manual/en/language.references.php
----
Server IP: 209.41.74.194
Probable Submitter: 216.82.221.10
----
Manual Page -- http://www.php.net/manual/en/function.settype.php
Edit -- https://master.php.net/note/edit/83991
Del: integrated -- https://master.php.net/note/delete/83991/integrated
Del: useless -- https://master.php.net/note/delete/83991/useless
Del: bad code -- https://master.php.net/note/delete/83991/bad+code
Del: spam -- https://master.php.net/note/delete/83991/spam
Del: non-english -- https://master.php.net/note/delete/83991/non-english
Del: in docs -- https://master.php.net/note/delete/83991/in+docs
Del: other reasons-- https://master.php.net/note/delete/83991
Reject -- https://master.php.net/note/reject/83991
Search -- https://master.php.net/manage/user-notes.php