<html>
<body>
$number = 9;
$str = "Beijing";
$txt = sprintf("There are %u million bicycles in %s.",$number,$str);
echo $txt;
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_string_sprintf by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:22:59 GMT -->
</html>