The text of this article is not in this database — only its details are. Read it on the old site: References in PHP
2 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: References in PHP
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Vinod KumarPosted Mar 25, 2013, 6:12 AM
but sir php references are not like pointer and references in PHP are a means to access the same variable content by different names. They are not like C++ pointers for instance, you cannot perform pointer arithmetic using them,they are not actual memory addresses.
Sam HobbsPosted Mar 24, 2013, 9:49 PM
How do PHP references compare to C++ references? Note that in C++ references are like pointers except references use a different syntax that makes them easier and safer to use. For example, references in C++ also cannot be evaluated in the manner that pointers are in pointer arithmetic. I assume that PHP references are like C++ references.