Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
No no. This is a value assignment.
To assign a link, you need to write $y = &$x;
In php, variables of a simple type are passed by value, the prefix & is used to pass a reference to a variable, starting from php5 objects are passed by reference, before that objects were also passed by value (cloned), now there is a separate clone() function for cloning an object;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question