<!DOCTYPE html>
<html>
<body>

<?php
$number = 9;
$str = "Beijing";
$txt = sprintf("There are %u million bicycles in %s.",$number,$str);
echo $txt;
?>
 

</body>
</html>