PHP pointers vs references -


in php, difference between using pointer such as:

function foo( $var ) {     $var = 3; }  $a = 0; foo( &$a ); 

and reference:

function foo( &$var ) {     $var = 3; }  $a = 0; foo( $a ); 

they both modify value of original variable, represented differently internally?

in php, there no pointers, references. examples demonstrate pass reference

the difference between code snippets in syntax, first syntax deprecated.


Comments

Popular posts from this blog

c++ - list<myClass<int> * > sort -

Meteor app using NGINX as load balancer -

python - How to find the cumulative sum of numbers in a list? -