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

Author:


Download

<?php

$a = 1;

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

}

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

Leave a Reply

Your email address will not be published. Required fields are marked *


five + = 10