Définir un constant en tant que tableaux ou objet

Author:

 constant,
Download

<html>
<head>
<title> Fonction Define</title>
</head>
<body>

<?php

    $mois = array("Janvier", "Fevrier", "Mars");
    define('MESMOIS', serialize($mois))
    ;
     function Afficher_val_Constant()
     {
       print_r(unserialize(MESMOIS));
     }

      Afficher_val_Constant();
?>

</body>
</html>

Leave a Reply

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


seven × 6 =