Skip to content

Superglobal Functions

ramaboo edited this page Dec 18, 2011 · 3 revisions

Superglobal Functions

Boo contains eight superpglobal functions defined in Boo/functions/superglobal.php.

  • _server()
  • _get()
  • _post()
  • _files()
  • _cookie()
  • _session()
  • _request()
  • _env()

Usage

These functions are used to access their respective PHP superglobals. Each accepts a string representing the key withing the superglobal array. If the key is found then the value is returned, otherwise FALSE is returned.

echo _post('name');
// displays value in $_POST['name'];

Clone this wiki locally