<html> <head> <title>tableau associatif</title> </head> <body> <?php $a = 0; function test($x,$y) { $GLOBALS['a'] = pow($x,$y); } echo "Avant a=$a<br/>"; test(2,3); echo "après a= $a "; ?> </body> </html>
<html> <head> <title>tableau associatif</title> </head> <body> <?php $a = 0; function test($x,$y) { $GLOBALS['a'] = pow($x,$y); } echo "Avant a=$a<br/>"; test(2,3); echo "après a= $a "; ?> </body> </html>