這是我處理的多維數組的例子格式:多維數組破滅
Array (
[1] => Array ([code] => PPJ3 [street] => 34412 Fake Street [city] => Detroit [state] => MI [zip] => 48223 [county] => Wayne [cost] => 432.00)
[2] => Array ([code] => PLK3 [street] => 73517 Fake Street [city] => Detroit [state] => MI [zip] => 48223 [county] => Wayne [cost] => 54.00)
[3] => Array ([code] => HYK2 [street] => 55224 Fake Street [city] => Detroit [state] => MI [zip] => 48208 [county] => Wayne [cost] => 345.00)
)
我想設置一個隱藏字段只有代碼值,並將它以逗號分隔。該數組還需要循環,因爲它會一直改變。 這是我想什麼它看起來像:
$ myHiddenField = PPJ3,PLK3,HYK2
是什麼編碼這種簡單的方式?