Advertisement
Guest User

Untitled

a guest
May 4th, 2016
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. foreach ($xls2cli->Region as $Region){
  2. if( $Region['id'] == 'Region1' ) {
  3. echo $Region['id']."<br>";
  4. foreach ($Region->site as $site){
  5. echo $site."<br>";
  6. }
  7. }
  8. }
  9.  
  10. foreach ( $xls2cli->xpath('/Region[id=Region1]') as $Region ) {
  11. echo $Region['id']."<br>";
  12. foreach ($Region->site as $site){
  13. echo $site."<br>";
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement