sscanf

Supported Versions: PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
Parses input from a string according to a format
<?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);
<?php         shell_exec(sprintf('stty %s', $sttyMode));



        sscanf($code, terminal()->getCsi() . '%d;%dR', $row, $col);



        return [$col, $row];

    }