Home  >  Article  >  Backend Development  >  Extract variables submitted by the page and browser

Extract variables submitted by the page and browser

WBOY
WBOYOriginal
2016-07-25 09:10:11898browse
Extract variables submitted by the page and browser, which is equivalent to opening global variables in PHP.INI
  1. //Extract variables submitted by the page and browser, which is equivalent to opening global variables in PHP.INI //OSPHP.com.CN
  2. @extract($_SERVER, EXTR_SKIP);
  3. @extract ($_SESSION, EXTR_SKIP);
  4. @extract($_POST, EXTR_SKIP);
  5. @extract($_FILES, EXTR_SKIP); //Open source OSPhP.COM.CN
  6. @extract($_GET, EXTR_SKIP);
  7. @extract($ _ENV, EXTR_SKIP);
  8. ?>
Copy code


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn