mercredi 25 février 2015

How to print php array to use in javascript?

I want to print this array :



$arr = array("foo","foo","foo");


if I use implode I will get this



foo,foo,foo


but I want :



"foo","foo","foo"


How could I do that ?


Aucun commentaire:

Enregistrer un commentaire