Suppose that I have a string \[code\]$var\[/code\]:\[code\]//php code$var = "hello,world,test";$exp = explode(",",$var);\[/code\]Now I get the array as \[code\]exp[0],exp[1],exp[1]\[/code\] as \[code\]'hello'\[/code\], \[code\]'world'\[/code\] and \[code\]'test'\[/code\], respectively.I want to use this all value in javascript in this:\[code\]var name = ['hello','world','test'];\[/code\]How can I generate that JavaScript in PHP?