Rechercher et remplacer avec la fonction ‘ereg_replace(string pattern,string replace, string string) ‘

Author:


Download

<html>
<head>
<title>Expression régulière</title>
</head>
<body>

<?php

$chaine = "Je dis non";
$resulat = ereg_replace("non", "oui", $chaine);
print $resulat;

?>

 </body>
</html>

Leave a Reply

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


6 + = eleven