18 October 2012 Convertir un code ASCII avec la fonction ‘chr(int ascii )’ String <html> <head> <title>String chr</title> </head> <body> <?php $ascii=99; // Convertir le cod php pacificateur
14 October 2012 Exemple d’utilisation de ‘ereg_replace( )’ String <?php $$texte = 'Voici mon email test@mesexemples.com'; // Remplacer l''email echo er php pacificateur
27 September 2012 Supprimer les lignes indésirables avec la fonction ‘chop( )’ String <html> <head> <title>Fonction chop</title> </head> <body> <?php $welcom = "Bienvenu sur Mon S php pacificateur
17 September 2012 Expression régulière: Effectuer une recherche dans une chaîne avec la fonction ‘int ereg()’ String <?php $chaine="Bienvenu sur mon site PHP"; // Chercher le Mot PHP dans la chaîne php pacificateur
10 August 2012 Expression Régulière: Trouver une chaîne dans un fichier String <html> <head> <title>Expression régulière</title> </head> <body> <?php // Ce programme Affiche le php pacificateur
6 August 2012 Expression régulière: Exemple d’utilisation de ‘preg_match( )’ pour analyser une chaîne String <?php $nom_utilisateur = "Test"; if (preg_match("([^a-z])",$nom_utilisateur)) { echo " php pacificateur
28 July 2012 Expression Régulière: Valider un mot de passe String <?php $password = "monmotdepasse"; if (!preg_match("/^[a-zA-Z0-9]{8,16}$/", $password)) ec php pacificateur
20 July 2012 Calculer la fréquence de chaque caractère avec la fonction ‘count_chars’ String <html> <head> <title>String count_chars()</title> </head> <body> <?php $chaine = "Voici une chaî php pacificateur
19 July 2012 Interpolation dans le document courant: voir l’orthographe String <?php $titre_page = 'Mois'; $jan = 'Janvier'; $fev = 'Février'; $mar = 'Mars'; print <<<MENU <html> php pacificateur
11 July 2012 Expression Régulière: Remplacer tous les chiffres String <?php $sms = "Bonne année 2000"; $sms = ereg_replace("[0-9]+", "2010", $sms); print $s php pacificateur