2 November 2012 Définir un constant en tant que tableaux ou objet Mathématiques <html> <head> <title> Fonction Define</title> </head> <body> <?php $mois = array("Janvier", "F php pacificateur
27 April 2012 Définir des constants comme nom de variable Mathématiques <html> <head> <title> Fonction Dynamique</title> </head> <body> <?php define("HeuresParJour", php pacificateur
25 November 2011 Déclaration et utilisation des variables et constants Fonctions <html> <head> <title>Définition d'un Constant</title> </head> <?php // déclarer un constant php pacificateur
24 November 2011 Afficher tous les types d’enregistrement DNS d’un host avec le constant ‘DNS_ALL’ Réseaux <?php $hostname = "google.com"; $enrgs = dns_get_record($hostname, DNS_ALL); foreach php pacificateur
23 November 2011 Afficher la date juif avec le constant ‘CAL_JEWISH’ Dates <?php $cal_jd = unixtojd(mktime(0, 0, 0, 8, 16, 2011)); print_r ($cal_jd); echo "<br/>"; $cal_juif php pacificateur
17 November 2011 Définir des constants en PHP classes <?php class Fonctions_math { const PI = '3.14159265'; const E = '2.7182818284'; php pacificateur
17 November 2011 Création et appel des constantes en PHP classes <?php class Employes { const DISPONIBILITE = "partielle"; const HEURE_TRAVAIL = 4; php pacificateur