PHP: Utilisation des variables globales

Author:


Download

<html>
<head>
<title>Variable Globale</title>
</head>
<body>

<?php
  $var_global = "R&B";
  function hobbie ()
  {
      global $var_global;
      echo "J'ecoute très souvent la musique $var_global", "
";
  }
  hobbie ();
?>

</body>
</html>

Leave a Reply

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


seven − = 5