1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do I extract arrays from xml

Discussion in 'PHP' started by marcel, Aug 24, 2005.

  1. #1
    For some reason, wddx_deserialize is only returning the last array in the wddx below. Any ideas why ?
    SEMrush
    PHP code that uses the wddx xml:

    
    
    $xmlvalues = wddx_deserialize("$servercontents");
    
     
    
    if(!empty($xmlvalues))
    
    {
    
    foreach ($xmlvalues as $key => $data)
    
        {
    
         echo "$key => $data<br>";
    
        } 
    
    }
    
     
    
    
    PHP:
    This is the wddx xml structure - there are 3 arrays in this wddx xml

     
    marcel, Aug 24, 2005 IP
    SEMrush
  2. marcel

    marcel Well-Known Member

    Messages:
    1,503
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    150
    #2
    Any ideas anyone... why is the function losing array values ?
     
    marcel, Aug 25, 2005 IP