Ben bir dize var olduğunu varsayalım $var:
//php code
$var = "hello,world,test";
$exp = explode(",",$var);
Şimdi exp[0],exp[1],exp[1] 'hello', 'world' ve 'test', sırasıyla olarak diziyi alır.
Ben bu javascript bu tüm değer kullanmak istiyorsanız:
var name = ['hello','world','test'];
Bunu nasıl JavaScript PHP üretebilir?