Possible Duplicate:
PHP : Create array for JSON
I have an array like this :
Array ( [0] => tag1 [1] => tag2 [2] => tags17c [3] => tags20 [4] => tags21)
I want put that array on javascript, and the format must be like this :
var Tag = ['tag1', 'tag2', 'tags17c', 'tags20', 'tags21'];
How to convert it? please, help me out..