Home
PHP
Chart
Class
Components
Cookie Session
Data Structure
Data Type
Date
Design Patterns
Development
DNS
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
Operator
PDF
Reflection
Statement
String
Utility Function
Web Services SOAP WSDL
XML
Menu
Variable Reference « Language Basics « PHP
PHP
Language Basics
Variable Reference
1.
$b is assigned a copy of $a, and in the second part, $b is assigned a reference to $a.
2.
& operator creates a reference
3.
Create a reference to a variable with the name of the constant's value.
4.
Passing by Reference in PHP
5.
Only named variables may be assigned by reference.
6.
Passing arrays by reference