Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Exemple d’utilisation de ‘ereg_replace( )’


{filelink=13376}

<?php

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

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

?>

No comments yet.

Leave a Comment