我發現自己經常將PHP Array數據輸出到AS3應用程序中,而且我總是不得不用艱難的方式 - 用逗號分隔,base-64轉換數據與任何一端的定製打包器/解包器。PHP Print_r到AS3陣列轉換
我真的很喜歡AS3函數,它採用PHP的print_r的默認輸出並將其轉換爲(可能嵌套的)AS3數組。有沒有簡單的方法來做到這一點?
樣品print_r的輸出:
Array
(
[0] => Array
(
[0] => 6
[1] => Test #1 of the video creation system
[2] => Short summary of test #1
)
[1] => Array
(
[0] => 7
[1] => Tone
[2] => Bar and Tone to warp the mind
)
)