<!DOCTYPE html>
<html>
<body>
<?php
$number = 2;
$str = "Shanghai";
$txt = sprintf("There are %u million cars in %s.",$number,$str);
echo $txt;
?>
</body>
</html>