Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

end foreach loop

foreach($equipxml as $equip) {
    $current_device = $equip->xpath("name");
    if ( $current_device[0] == $device ) {
        // found a match in the file            
        $nodeid = $equip->id;
        break;
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #foreach #loop
ADD COMMENT
Topic
Name
3+3 =