src/Strings.php
public static function format(string $format, string ...$arguments) : string
    {
        foreach ($arguments as $key => $value) {
            $format = str_replace("{{$key}}", (string)$value, $format);
        }

        return $format;
    }
public static function format(string $format, string ...$arguments) : string
    {
        foreach ($arguments as $key => $value) {
            $format = str_replace("{{$key}}", (string)$value, $format);
        }

        return $format;
    }
public static function format ( string $ format , string ... $ arguments ) : string { foreach ( $ arguments as $ key => $ value ) { $ format = str_replace ( "{{$key}}" , ( string ) $ value , $ format ) ; } return $ format ; }
Replaces the format items in a specified string with the string representation of n specified objects.

@param string $format A composit format string
@param mixed  $arguments Variable number of items to format.

@return string Returns a copy of format in which the format items have been
replaced by the string representations of arg0, arg1,... argN.
Replaces the format items in a specified string with the string representation of n specified objects .