Universeorange.com/Docs/

R3m/framework Function reference string.format

{string.format(String $string, String $format, Mixed ...$vars)}

Parses input from a string according to a format.

The function {string.format()} is the input analog of PHP's printf().
{string.format()} reads from the string string and interprets it according to the specified format, which is described in the documentation for PHP's sprintf().

Any whitespace in the format string matches any whitespace in the input string.
This means that even a tab \t in the format string can match a single space character in the input string.

If only two parameters were passed to this function, the values parsed will be returned as an array.
If more than two parameters were passed to this function, those will be the keys of the returned array.

More information:

https://www.php.net/manual/en/function.sscanf.php

Last modified: 2021-06-07

© 2021 universeorange.com