<?php //test.php return array( 'name' => 'andy', 'sex' => 'male' ); ?> <?php $set = require("test.php"); print_r($set);exit; ?> <?php $set = include("test.php"); print_r($set);exit; ?>
<?php //test.php return array( 'name' => 'andy', 'sex' => 'male' ); ?> <?php $set = require("test.php"); print_r($set);exit; ?> <?php $set = include("test.php"); print_r($set);exit; ?>
转载于:https://www.cnblogs.com/sky20080101/p/6835724.html