Formater une chaîne de caractère avec ‘addslashes(string chaine)’.Efficace pour les caractère spéciaux(apostrophe)

Author:


Download

<html>
<head>
<title>fonction String</title>
</head>
<body>

<?php
    $string = "J'aime le PHP avec http://php.mesexemples.com";
    $a = addslashes($string);
    echo $a."<br/>";
    $b = addslashes($a);
     echo $b."<br/>";
    $c = addslashes($b);
    echo $c."<br/>";
?>

</body>
</html>

Leave a Reply

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


2 × two =