📜  结束 foreach 循环 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:47.534000             🧑  作者: Mango

代码示例2
foreach($equipxml as $equip) {
    $current_device = $equip->xpath("name");
    if ( $current_device[0] == $device ) {
        // found a match in the file            
        $nodeid = $equip->id;
        break;
    }
}