public function updateOrder($order) { $ex = explode(";", $order); foreach ($ex as $k => $v) { $U = new Userdata($v); $exW = explode(";", $U->A("wert")); $exW[0] = ($k < 100 ? "0" : "") . ($k < 10 ? "0" : "") . $k; $U->changeA("wert", implode(";", $exW)); $U->saveMe(true, false); } }