You cannot use $GLOBLAS to change external variables inside a function!!
spelty
spelty 2017-07-19 23:02:24
0
2
1723

<?php

$hongniu = 'I am a soldier, from the common people';

function test()

{

echo 'Executed TEST function<br />';

$GLOBLAS['hongniu'] = 'Helping others is very happy~! ';

}

test();

echo $hongniu;

?>


spelty
spelty

reply all(2)
phpcn_u10728

There must be a problem with their server. It means that the result of running on the local server is correctQQ截图20170721100111.png

spelty

Here I go, I entered the wrong word. global is correct. GLOBLAS

  • reply Haha, you still have to be careful.
    ringa_lee author 2017-07-20 09:03:23
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template