27/08/2013, 15:43:37
Après avoir fait un test, si $Liste est défini après l'instruction global $Liste, cela fonctionne.
<?php
function Resultat()
{
global $Liste;
$Liste=array("a","b","c");
$A= $Liste[1];
return $A ;
}
?>
<?php
function Resultat()
{
global $Liste;
$Liste=array("a","b","c");
$A= $Liste[1];
return $A ;
}
?>