30 October 2012 PHP: Syntaxe d’utilisation de ‘parse_str()’ Formulaire <?php // void parse_str(string string[, array variables]) $url = "fname=wj&lname=gore&to= sa
29 October 2012 PHP: Sélectionner un élément du menu ‘select, option’ automatiquement Formulaire <?php $fruits = array('Orange' => 'O', 'Banane' => 'B', 'Pomme' = sa
27 October 2012 Exemple d’utilisation de la fonction ‘bcpow()’ Mathématiques <html> <head> <title> Fonction Mathématique</title> </head> <body> <?php for ($x = 1; $x < 10; $x++ php pacificateur
22 October 2012 PHP: Création d’une page de connexion Formulaire <html> <body> <form method="post" action="login.php"> <h2>Page de connexion</h2> <br><br> Nom d'uti sa
17 October 2012 PHP: Créer un bouton de soumission(submit) automatiquement Formulaire <?php function input_submit($nom_control, $label) { print '<input type="submit" name="' . $nom sa
15 October 2012 PHP: Extraire les méthodes d’une classe avec ‘get_class_methods()’ Reflection <?php class Animal { var $nom; var $race; function setNom($nom){ $this->nom=$nom php pacificateur
13 October 2012 Vérifier si une variable est numérique ou si c’est un tableau Reflection <?php $item = 153; echo "$item est tableau?: ".is_array($item)."<br />"; echo "$item php pacificateur
12 October 2012 PHP: Obtenir les interfaces déclarées dans le script Reflection <?php interface Equipement { function getNom( ); function getType( ); php pacificateur
9 October 2012 Obtenir la date et l’heure de la modification du fichier Formulaire <?php $lastmod = filemtime($_SERVER['DOCUMENT_ROOT']); echo 'Dernière Modfication: ' . date('l d F sa
8 October 2012 Vérifier si une variable est de type ‘int’ Reflection <?php $a = 255; echo "est_int($a) = " . (is_int($a) ? "oui" : "non") . " "; $a = '255'; echo "est_ php pacificateur