实例 <?php $title = "人名单"; $name1 = "王二"; $age1 = 29; $name2 = "孙七"; $age2 = 30; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title><?php echo $title; ?></title> </head> <body> <table border="1"> <tr><td>姓名</td><td>性别</td><td>年龄</td></tr> <tr><td><?php echo $name1; ?></td><td>男</td><td><?php echo $age1; ?></td></tr> <tr><td><?php echo $name2; ?></td><td>女</td><td><?php echo $age2; ?></td></tr> </table> </body> </html> 运行实例 » 点击 "运行实例" 按钮查看在线实例