There is a problem with global variables in PHP development basic tutorial
Alex.He
Alex.He 2018-08-30 14:27:10
0
2
1592

The same code outputs 11 when tested locally, but the output of the web page editor is 6

Alex.He
Alex.He

reply all(1)
PHPzhong

This article written by our teacher can solve your problem: What are the changes in the global variable mechanism under PHP5 and PHP7 versions?

  • reply The reason why different operation results appear is actually because in the latest php7 version, the PHP global variable processing mechanism has been modified. In this version, the global keyword can now only refer to simple variables.
    PHPz author 2018-08-31 15:17:58
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template