function updatePot(&$POs, $msg) { foreach ($POs as $po) { $t = $msg[$po->num]; $po->str = PO::undecorate($t); } }