Назначьте необходимый файл глобальному пространству имен в PHP ⇐ Php
-
Anonymous
Назначьте необходимый файл глобальному пространству имен в PHP
I need to assign included file in a function scope to global namespace. Is there any possible way?
// global namespace function scope() { // function scope require_once 'file.php'; } this will include file.php to function and can't access global variables.
Источник: https://stackoverflow.com/questions/525 ... ace-in-php
I need to assign included file in a function scope to global namespace. Is there any possible way?
// global namespace function scope() { // function scope require_once 'file.php'; } this will include file.php to function and can't access global variables.
Источник: https://stackoverflow.com/questions/525 ... ace-in-php
Мобильная версия