Greetings. I have a file with this content:
$text = "a"; function MyFunc(){ $GLOBALS['text'] = "b"; } MyFunc(); include('путь'); It includes a file with such content:
echo $text; It seems everything is logical. But it is not strange displays "a". How to fix it?