sscanf
laravel/framework
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
public function
scan
(
$format
)
{
return
collect
(
sscanf
(
$this
->
value
,
$format
));
}
src/Illuminate/Support/Stringable.php
}
[
$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