<?php. $moneys = array(100,200,500,1000);. $total = 0;. foreach ($moneys as $value) {. $total += $value;. if ($total > 500) {. break;. }.
確定! 回上一頁