Function and the operator &
Posted: Mon Feb 16, 2004 1:27 pm
When you crate a function, i know it takes a & in case like this one :
but why..i just need someone to explain the use of & in a function befor a variable name..
thx
Code: Select all
function addFive( &$num ) {
$num += 5;
}
$orignum = 10;
addFive( $orignum );
print( $orignum );
?>thx