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

Variable globale: utilisation de ‘extract($Global)’


{filelink=14330}

<?php

$a = 1;

function test()
{
  extract($GLOBALS);
  $a = 12;

}

test();
// affiche "1" au lieu de "12"
print $a;
?>

No comments yet.

Leave a Comment