<?php sscanf(string $string, string $format, mixed &...$vars): array|int|null
<?php public function scan($format) { return collect(sscanf($this->value, $format)); }
<?php } [$numerator, $denominator] = array_replace( [1, 1], array_filter(sscanf($parameters['ratio'], '%f/%d')) ); $precision = 1 / (max($width, $height) + 1);