[ create a new paste ] login | about

Link: http://codepad.org/0dHylkPk    [ raw code | output | fork ]

PHP, pasted on Sep 4:
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

$xml = <<< XML
<Routes>
    <Route type="source" name="incoming"/>
</Routes>
XML;
    
$routes = simplexml_load_string($xml);

foreach ($routes->Route as $route) {
    echo $route['name'];
}


Output:
1
incoming


Create a new paste based on this one


Comments: