getContext()->getRequestVars() is a method in the PHP language that returns an associative array containing request variables sent to the script via the HTTP POST or GET method.
Here's an example of using it to retrieve a GET variable named "id":
$id = getContext()->getRequestVars()['id'];
Another example retrieves multiple POST variables:
The package library for this method is likely part of the underlying framework or CMS being used in the application, rather than a standalone library. For example, in the case of the Laravel framework, getRequestVars would be accessed using the Request facade:
$id = Request::input('id');
Similarly, in Drupal, request variables can be accessed using the request object:
$id = \Drupal::request()->query->get('id');
PHP Context::getRequestVars - 30 examples found. These are the top rated real world PHP examples of Context::getRequestVars from package thinksns extracted from open source projects. You can rate examples to help us improve the quality of examples.