1.php提供几种注释语法
a.单行C++语法: 以双斜线(//)开头,如下:
// Title : My first PHP script
//Author: riont
echo " This is a PHP program"
?>
b,shell语法:以#符号开头
  # Title : My first PHP script
  # Author: riont
echo " This is a PHP program"
?>
c,多行注释语法:
/* 
Title : My first PHP script
  Author: riont
*/
echo " This is a PHP program"
?>
2.print(),echo( )语句:把传入它的数据输出到浏览器
比较重要的一个函数:printf( );
printf("%d bottle of tonic water cost $%f",100,43.20);
显示的结果为:100 bottle of tonic water cost $43.20
sprintf ( )跟printf ( )差不多,但它将输出指派到字符串,而不是直接指派到浏览器。
$cost = sprintf ("$%.2f",43.2); //$cost = $43.20