Extension:PhpTags Functions/Functions/Useful/WebRequest

The WebRequest class is wrapper of original WebRequest class that which encapsulates getting at data passed in the URL or via a POSTed form, handling remove of "magic quotes" slashes, stripping illegal input characters and normalizing Unicode sequences.
 * Parser's cache will be disabled on page if the WebRequest class used

getArray

 * Description

Fetch an array from the input or return $default if it's not set. If source was scalar, will return an array with a single element. If no source and no default, returns NULL.

getBool

 * Description

Fetch a boolean value from the input or return $default if not set. Guaranteed to return true or false, with normal PHP semantics for boolean interpretation of strings.

getCheck

 * Description

Return true if the named value is set in the input, whatever that value is (even "0"). Return false if the named value is not set. Example use is checking for the presence of check boxes in forms.

getCookie

 * Description

Get a cookie from the $_COOKIE jar.
 * This function always use  prefix with $key