PDA

View Full Version : PHP Loop through ArrayCollection in PHP



Kenwio
October 24th, 2008, 03:50 AM
Hello!

I need to send an ArrayCollection created in AS3 to PHP. I'm using the HTTPService class.

The question is: How do loop through the ArrayCollection in PHP?

Many thanks,
Kenwio

borrob
October 24th, 2008, 08:52 AM
I don't think it is possible to send array's from flash to php, at least the last time i looked it couldn't.

so i think you should put the array in a string with a seperator and split the string in php to an array
and then for( $i = 0; $i < count( $arr ); $i++ )