In PHP, what is the difference between using a 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 the value of the original variable, but are they represented differently internally?