案例:php案例     状态:不可编辑再运行    进入竖版
 运行结果 
x
 
1
2
3
4
<!DOCTYPE html>
5
<html>
6
<body>
7
8
<?php
9
$number = 2;
10
$str = "Shanghai";
11
$txt = sprintf("There are %u million cars in %s.",$number,$str);
12
echo $txt;
13
?>
14
  
15
</body>
16
</html>
17
18
19