note 110460 added to function.socket-recvfrom
| From: | utherpendragon | Date: | Wed, 24 Oct 2012 13:32:45 +0000 |
| Subject: | note 110460 added to function.socket-recvfrom | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191517@lists.php.net to get a copy of this message | ||
NOTE: in regards to passing the reference or "pointer" into the function, you should
*not* prefix the variable with the '&' symbol! The use of them in the function
prototype above is to illustrate that these variables will be referenced in the function. This is
done automatically by php, do *not* do this: func(&$a)!
see "Passing by Reference" in the php manual at: http://us1.php.net/manual/en/language.references.pass.php
"Note: There is no reference sign on a function call - only on function definitions. Function
definitions alone are enough to correctly pass the argument by reference. As of PHP 5.3.0, you will
get a warning saying that "call-time pass-by-reference" is deprecated when you use &
in foo(&$a);. And as of PHP 5.4.0, call-time pass-by-reference was removed, so using it will
raise a fatal error.")
----
Server IP: 192.41.42.26
Probable Submitter: 209.66.118.234
----
Manual Page -- http://www.php.net/manual/en/function.socket-recvfrom.php
Edit -- https://master.php.net/note/edit/110460
Del: integrated -- https://master.php.net/note/delete/110460/integrated
Del: useless -- https://master.php.net/note/delete/110460/useless
Del: bad code -- https://master.php.net/note/delete/110460/bad+code
Del: spam -- https://master.php.net/note/delete/110460/spam
Del: non-english -- https://master.php.net/note/delete/110460/non-english
Del: in docs -- https://master.php.net/note/delete/110460/in+docs
Del: other reasons-- https://master.php.net/note/delete/110460
Reject -- https://master.php.net/note/reject/110460
Search -- https://master.php.net/manage/user-notes.php