Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 12th, 2012  |  syntax: None  |  size: 0.57 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. PHP Array generated from Xpath Query - Trying to extract data
  2. Array
  3. (
  4. [0] => Array
  5.     (
  6.         [0] => SimpleXMLElement Object
  7.             (
  8.                 [@attributes] => Array
  9.                     (
  10.                         [ReclaimDate] => 05/15/2008
  11.                         [ReclaimPrice] => 555555555
  12.                         [_Owner] => ownername
  13.                     )
  14.  
  15.             )
  16.  
  17.     )
  18.        
  19. // if $myVar is what you print_r'ed
  20.     echo (string)$myVar[0][0]['ReclaimDate'];
  21.        
  22. echo (string)$myVar[0][0]->attributes('ReclaimDate');
  23.        
  24. )
  25.  
  26. ) // Array RETURNED`
  27.        
  28. }
  29. }