Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Création et utilisation des variables globales


{filelink=14328}

<?php
$a = 10;
$b = 20;
function somme() {
    $GLOBALS['b'] = $GLOBALS['a'] + $GLOBALS['b'];
}
somme();
echo $b;
?>

No comments yet.

Leave a Comment