$sessionId = $driver->getWebDriver()->getSessionID();
$commandExecutorUrl = $driver->getWebDriver()->getCommandExecutor()->getAddressOfRemoteServer();
// Это просто строки, сохраняем их где-нибудь.
$driver2 = RemoteWebDriver::createBySessionID($sessionId, $commandExecutorUrl, $connectionTimeout);
if ($constraint->minHeight) {
if (!ctype_digit((string) $constraint->minHeight)) {
throw new ConstraintDefinitionException(sprintf('"%s" is not a valid minimum height.', $constraint->minHeight));
}
if ($height < $constraint->minHeight) {
$this->context->buildViolation($constraint->minHeightMessage)
->setParameter('{{ height }}', $height)
->setParameter('{{ min_height }}', $constraint->minHeight)
->setCode(Image::TOO_LOW_ERROR)
->addViolation();
return;
}
}
$a = [
[
'2022-02-01' => [
72 => [
'office' => 'Белорусская',
'time' => '21:30',
],
],
],
[
'2022-02-01' => [
72 => [
'office' => 'Белорусская',
'time' => '21:00',
],
],
],
[
'2022-02-01' => [
72 => [
'office' => 'Белорусская',
'time' => '20:30',
],
],
],
[
'2022-02-01' => [
72 => [
'office' => 'Белорусская',
'time' => '20:00',
],
],
],
];
print_r(array_merge_recursive(...$a));
$mask = '+7(###)###-##-##';
$value = '1234145577';
$result = sprintf(str_replace('#', '%d', $mask), ...str_split($value));
echo $result; // +7(123)414-55-77