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

javascript - Hide toolbar of pdf file opened inside iframe using firefox -

Copy range with conditional formatting -

Ansible - ERROR! the field 'hosts' is required but was not set -