par
DocType » 29 sept. 2005, 15:22
$trans = array("\"" => "", "'" => "");
$variable = strtr($variable, $trans);
ou
$variable = strtr($variable, "\"", "");
$variable = strtr($variable, "'", "");
Après tu ajuste en fonction de tes slashes

[php]
$trans = array("\"" => "", "'" => "");
$variable = strtr($variable, $trans);
[/php]
ou
[php]
$variable = strtr($variable, "\"", "");
$variable = strtr($variable, "'", "");
[/php]
Après tu ajuste en fonction de tes slashes :wink: