<?php function imageHTML($fichier, $alt = '', $height = 0, $width = 0) { print '<img src="' .
<?php $pays= "US"; function test( ) { $GLOBALS['pays'] = "france"; }
<?php $somme=0; function clacul($a,$b) { $GLOBALS["somme"]=$a+$b; } print "Val
<html> <head> <title>Tablea associatif pré-défini</title> </head> <body> <?php foreach ( $GLOBALS a
<html> <head> <title>tableau associatif</title> </head> <body> <?php $a = 0; function test($x,$y) {
<?php $a = 10; $b = 20; function somme() { $GLOBALS['b'] = $GLOBALS['a'] + $GLOBALS['b']; } som
<?php $langue = 'Anglais'; function apprendre_langue() { $GLOBALS['langue'] .= ' et français'
<?php $a = 1; function test() { extract($GLOBALS); $a = 12; } test(); // affiche "1" au lieu