<?php
//include 'functions.php';
//include 与 require 区别:
//include
//include 'test.php';
//echo 'include,警告并继续往下执行<br>';
//require
//require 'test.php';
//echo 'require,报错并不执行此行及以下代码';
//include 与 include_once 区别:
//include
//include 'functions.php'; //抱重复的错误
//include 'functions.php';
//include_once
//include_once 'functions.php'; //不会报错,会继续执行
//include_once 'functions.php'; //因为已经包含了文件,另一个包含文件就不再包含
require_once 'functions.php';
require_once 'functions.php';
demo();
test();
?>