Answers for "for each end loop"

PHP
0

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;
    }
}
Posted by: Guest on March-07-2021

Browse Popular Code Answers by Language