php 获取一个文件中return array() 的值

来源:互联网 发布:鸿雁传书软件下载 编辑:程序博客网 时间:2024/06/04 18:16

test.php文件

[php] view plaincopy
  1. <?php  
  2. return array(  
  3.     'name' => 'andy',  
  4.     'sex' => 'male'  
  5. );  
  6. ?>  

set.php文件
[php] view plaincopy
  1. <?php  
  2. $set = include("test.php");  
  3. print_r($set);exit;  
  4. ?> 
0 0