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

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

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -