İç içe PHP değişken kapsam işlevi tarafından döndürülen dahil

0 Cevap

Thanks in advance for any help. :)
Ok, here's my problem.
Simplified version of the code:
global space with include file

include file where $var is defined and function is called that returns an include statement
include file returned by function and where $var is no longer accessible

Neden $ var erişilebilir artık?

I suspect it has to do with the function or maybe I am missing something else. The function is like so:

function blah() {
return include_once 'filename.php';
}

0 Cevap