我如何以这种格式转换PHP数组
Array
(
[0] => 001-1234567
[1] => 1234567
[2] => 12345678
[3] => 12345678
[4] => 12345678
[5] => AP1W3242
[6] => AP7X1234
[7] => AS1234
[8] => MH9Z2324
[9] => MX1234
[10] => TN1A3242
[11] => ZZ1234
)
到以下格式的Javascript数组?
var cities = [
"Aberdeen",
"Ada",
"Adamsville",
"Addyston",
"Adelphi",
"Adena",
"Adrian",
"Akron",
"Albany"
];
script
创建它的标签中的字符串,或者您是要创建JSON以发送回Ajax请求,还是要... (另外,值得一提的是,在提出问题时,请查看右侧的“ 如何格式化”框,以及从问题区域上方的[?] 链接的页面。)