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

Expression Régulière: Remplacer tous les chiffres


{filelink=13373}

<?php

    $sms = "Bonne année 2000";
    $sms = ereg_replace("[0-9]+", "2010", $sms);
    print $sms;
?>

No comments yet.

Leave a Comment