Removed deprecated method JsonSerializationVisitor::addData, use :visitProperty(new StaticPropertyMetadata('', 'name', null), 'value') instead
$massive = "1H|\^&|||ttt|||||h|BATCH|P|1 P|1 O|1|5331|598^0012^1^^S1^SC|^^^133^1\^^^140^1|R||20190625132832||||N||||1|||||||20190625135509|||F R|1|^^^133/1/not|1.52|uIU/ml||N||F||admin|||E1 R|2|^^^140/1/not|4.99|pmol/l||N||F||admin|||E00 21 L|1|N 43";
// Ищем все числа из трех цифр, перед которыми стоит ^^^
// и результат записываем в matches
preg_match_all('~\^{3}(?P<target>\d{3})~', $massive, $matches);
// В массиве matches c индексом 'target' лежат наши значения
// [
// 0 => "133"
// 1 => "140"
// 2 => "133"
// 3 => "140"
// ]
var_dump($matches['target']);
~/.bash_profile
и перезайдите):export PATH="$PATH:~/.composer/vendor/bin"
getMobileOpinionList()
getDefaultOpinionList()
$qb->select('count($dig.id)')
$qb->getQuery()->getSingleScalarResult()
try {
echo
(new PurchaseOrder(
new LocalOrderStorage(
new NullOrderStorage()
),
new OrderId($inputParams['order_id'])
))
->newInvoice(
new InvoiceNumber(
new Vendor(
new LocalVendorStorage(),
new VendorId($inputParams['vendor_id'])
),
new VendorInvoiceNumber($inputParams['vendor_invoice_number']),
new DateTime($inputParams['date_time'])
),
new VendorInvoiceNumber($inputParams['vendor_invoice_number']),
new DateTime($inputParams['date_time']),
new InvoiceAmount(
new Amount($inputParams['amount']),
new Currency($inputParams['currency'])
)
)
->json()
;
} catch (Exception $exception) {
return
(new ErrorResult())
->json($exception->getCode(), $exception->getMessage())
;
}
$this->render('builders/index.html.twig', ['names' => $names])
$badUrl = "example.com";
$resultArray = array_filter($startArray, function($arr) use ($badUrl) {
return !(isset($arr['url']) && $arr['url'] === $excludeUrl);
});
$badUrl = "example.com";
$resultArray = array_filter(
$startArray,
fn($arr) => !(isset($arr['url']) && $arr['url'] === $excludeUrl)
);