Bonjour,
Quelqu'un peut m'aider à convertir ce code PHP en coldfusion :
<?php
$postParams = array();
foreach ($_POST as $key => $value){
array_push($postParams, $key);
}
natcasesort($postParams);
$hach = "";
$hashval = "";
foreach ($postParams as $param){
$paramValue = html_entity_decode(preg_replace("/\n$/","",$_POST[$param]), ENT_QUOTES, 'UTF-8');
$hach = $hach . "(!".$param."!:!".$_POST[$param]."!)";
$escapedParamValue = str_replace("|", "\\|", str_replace("\\", "\\\\", $paramValue));
$lowerParam = strtolower($param);
if($lowerParam != "hash" && $lowerParam != "encoding" ) {
$hashval = $hashval . $escapedParamValue . "|";
}
}
?>
EDIT : Ajout des balises de code (la coloration syntaxique).
Explications disponibles ici : ICI
Merci d'y penser dans tes prochains messages. |