note 126206 added to control-structures.goto

From: Date: Thu, 01 Jul 2021 03:18:53 +0000
Subject: note 126206 added to control-structures.goto
Groups: php.notes 
Request: Send a blank email to php-notes+get-216563@lists.php.net to get a copy of this message
label: $response = $this->postRequest(self::$API_URL . "v2/orders", $arr); if (isset($response['response']['error']['message'])) { $pos = stripos($response['response']['error']['message'], "Exists order with number"); if ($pos !== false) { $arr['orderPartnerId'] .= '-1'; goto label; } } $order->delivery_type = \common\models\Order::DELIVERY_TYPE_CM; $order->claim_id = "" . $arr['orderPartnerId']; if (!$order->save()) { return [ 'status' => false, 'code' => 400, 'msg' => "Не получилось сохранить заказ", 'errors' => $order->errors, ]; } ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 31.134.190.215) ---- Manual Page -- https://php.net/manual/en/control-structures.goto.php Edit -- https://main.php.net/note/edit/126206 Del: integrated -- https://main.php.net/note/delete/126206/integrated Del: useless -- https://main.php.net/note/delete/126206/useless Del: bad code -- https://main.php.net/note/delete/126206/bad+code Del: spam -- https://main.php.net/note/delete/126206/spam Del: non-english -- https://main.php.net/note/delete/126206/non-english Del: in docs -- https://main.php.net/note/delete/126206/in+docs Del: other reasons-- https://main.php.net/note/delete/126206 Reject -- https://main.php.net/note/reject/126206 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216563) next »