/** * Formats a string by injecting non-numeric characters into * the string in the positions they appear in the template. * * @param string $string The string to format * @param string $template String format to apply * @return string Formatted string. */ function str_format($string, $template) { return \Phpf\Util\Str::format($string, $template); }