How to load return array from a PHP file?
When an included file returns something, you may simply assign it to a variable
$myArray = include $in;
Returning values from an include file
We use this in our CMS.You are close, you just need to return the value from that function.
function fetchArray($in){ if(is_file($in)) return include $in; return false}