string function in PHP is used to render a string that is formatted according to the format
specifier you supply in place of where the variables will rest in the string. This function can take a mixed amount of arguments as variables.
$myFormatString = "%s has over %d built in functions!";
printf($myFormatString, "PHP", "700");
PHP has over 700 built in functions!