I'm too strong.. it works right out :-)
it printed :
one * two = 2
and then :
one * two = 2
three * two = 6
four * one = 4
three * twelve = 36
happy ? ;-)
<?
$thearray=array('one'=>1,'
function compute($number1,$number2)
GLOBAL $thearray;
return("$number1 * $number2 = ".$thearray["$number1"]*$t
}
echo compute('one','two').'<br>
echo compute('three','two').'<b
echo compute('four','one').'<br
echo compute('three','twelve').
?>
Main Topics
Browse All Topics





by: VGRPosted on 2003-10-05 at 04:11:19ID: 9494055
<? two'=>2,'t hree'=>3); { hearray["$ number2"]) ;
$thearray=array('one'=>1,'
function compute($number1,$number2)
GLOBAL $thearray;
return("$number1 * $number2 = ".$thearray["$number1"]*$t
}
echo compute('one','two');
?>
not tested against typos but should work