Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach ($xls2cli->Region as $Region){
- if( $Region['id'] == 'Region1' ) {
- echo $Region['id']."<br>";
- foreach ($Region->site as $site){
- echo $site."<br>";
- }
- }
- }
- foreach ( $xls2cli->xpath('/Region[id=Region1]') as $Region ) {
- echo $Region['id']."<br>";
- foreach ($Region->site as $site){
- echo $site."<br>";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement