I can't escape my code JS in my echo :
echo "<script type='text/javascript'>
// Initialiser l'objet.
var tab_nb_match_par_user = ".json_encode($tab_nb_match_par_user).";
var taille = 70;
console.log(tab_nb_match_par_user);
for (var k in tab_nb_match_par_user){
$('#img').append('<img src="stats_matching/' + k + '.gif" alt="' + k + '" title="' + k + '" width="' + taille + '" />');
taille = taille-6;
}
</scrip>";
And I have this follow error: Uncaught SyntaxError: missing ) after argument list