I'm working on core php,i need how to convert PHP array to Javascript array please help me,below the my example code this there please check it.
I tried from long time to debug but not getting any leads. please help me in resolving this issue
Here my php array data:
Array
(
[0] => 001-1234567
[1] => 1234567
[2] => 12345678
[3] => 12345678
[4] => 12345678
)
Here javascript array:
var cities = [
"Aberdeen",
"Ada",
"Adamsville",
"Addyston",
"Adelphi"
];