I have a PHP file a configuration file coming from a Yii message translation file which contains this:
\'value\' \'
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 }
See example 5# here