使用文件包含/*** 取得月份名称数组*/include("40-2.php"); //这里包含文件//print("这里时被包含进来的");echo("Month 5 is " . $monthName[5] . "\n");echo("Month Aug is " . $monthName["Aug"] . "\n");print("Month June is " . $monthName["June"] . "\n");MyCounter(999)//这里调用包含文件中的函数?>function MyCounter($counter) {//一个简单的函数print("");print($counter);//打印传入的参数print("");}?>
