How to load return array from a PHP file?

前端 未结 3 2098
小鲜肉
小鲜肉 2020-12-07 21:54

I have a PHP file a configuration file coming from a Yii message translation file which contains this:

 \'value\'
  \'         


        
3条回答
  •  不知归路
    2020-12-07 22:08

    When an included file returns something, you may simply assign it to a variable

    $myArray = include $in;
    

    See http://php.net/manual/function.include.php#example-126

提交回复
热议问题