I'm using Windows98 / Apache and looking at a php snippet from Wrox on page
204.
It goes like this:
..................................
<?
function tax (&$Salary)
{
$Salary= $Salary - (($Salary/100)*20);
return $Salary;
}
$Salary=2500;
echo $Salary;
?>
......................................
The result in the textbook is 2000 but I'm getting 2500.
It says that to pass an argument by reference you *add* an ampersand to the
front variable that you are passing.
Any help would be appreciated.
Happy new year to all,
Tony Ritter
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]