sscanf
Supported Versions: PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
Parses input from a string according to a format
sscanf
(
string $string
,
string $format
,
mixed
&...
$vars
): array|
int
|
null
laravel/framework
public function
scan
(
$format
)
{
return
collect
(
sscanf
(
$this
->
value
,
$format
));
}
src/Illuminate/Support/Stringable.php
laravel/framework
}
[
$numerator
,
$denominator
] =
array_replace
(
[
1
,
1
],
array_filter
(
sscanf
(
$parameters
[
'ratio'
],
'%f/%d'
))
);
$precision
=
1
/ (
max
(
$width
,
$height
) +
1
);
src/Illuminate/Validation/Concerns/ValidatesAttributes.php
thermage/thermage
shell_exec
(
sprintf
(
'stty %s'
,
$sttyMode
));
sscanf
(
$code
,
terminal
()->
getCsi
() .
'%d;%dR'
,
$row
,
$col
);
return [
$col
,
$row
];
}
src/Base/Cursor.php