Hi,
I've just seen a new use, for me, of the reference
&
operator:
function foo( $s )
{
$s .= 'bar';
}
$str = 'foo';
foo( & $str );
print( "$str\n" ); // output: 'foobar'
I've said to myself : "Great!!! I can use it for a large array", for example:
$idx = array_search( $el, & $bigArray );
or use when I need to save memory.
So I take a look inside the PHP doc but I didn't find that behaviour. So what about?
Is it a deprecated feature or is still valid and supported in php5?
Thanks a lot!!!!!