Exemple d’utilisation de ‘ereg_replace( )’

Author:


Download

<?php

    $$texte = 'Voici mon email test@mesexemples.com';

    // Remplacer l''email
    echo ereg_replace ('([[:alpha:]]+)@([[:alpha:]]+).([[:alpha:]]{2,4})',
      'moi@mesexemples.com', $$texte)

?>

Leave a Reply

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


9 − = four