PDA

View Full Version : Sending 2-D array from PHP to flash?


racemysunfish
06-28-2007, 10:05 AM
Hi all,

Is there a good way to echo out a long 2-d array from PHP to Flash? I can send a 1-d array just fine using an echo in php and array.split in flash.

Thanks

jsebrech
06-28-2007, 10:55 AM
Look at JSON. There are libraries for encoding in PHP and for decoding in flash. JSON can deal with any data structure.

http://www.json.org

icktoofay
06-29-2007, 07:39 AM
You beat me to it.