search

Home  >  Q&A  >  body text

If you run the sample code directly, getting the value of the GLOBALS variable and changing the variable will also fail.

<?php


function hello(){


## $GLOBALS['que'] = 'It's better to drink tea to refresh yourself';


## echo 'You adjusted the function hello<br />';

}


hello();


echo $que;

##? >

网沃科技-范智强网沃科技-范智强2093 days ago1006

reply all(0)I'll reply

No reply
  • Cancelreply