using nested arrays by php http_build_query() and recieve them in flash AS3
        Posted  
        
            by Mahmoud
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Mahmoud
        
        
        
        Published on 2010-05-20T02:22:52Z
        Indexed on 
            2010/05/20
            2:30 UTC
        
        
        Read the original article
        Hit count: 490
        
hi, i am having this hard time figuring what is needed to do, i am using URLVariables to send/recieve values between flash and PHP
the problem is, i am unable to access nested arrays ( array inside an array ) with flash
heres an example:
$dgresult = array("total" => $results); echo http_build_query($dgresult,"flf_");
in flash, all i need to do is to use: var variables:URLVariables = new URLVariables(e.target.data);
then i can access it with : variables.total
the problem now is when i have nested arrays:
$dgresult = array("total" => $results); array_push($dgresult,$another_array); http_build_query($dgresult,"flf_");
i can still access variables.total
but what about anything that has flf_ ? how is that possible?
© Stack Overflow or respective owner