Name

import_request_variables

Synopsis

bool import_request_variables(string types[, string prefix])

Imports GET, POST, and cookie variables into the global scope. The types parameter defines which variables are imported, and in which order—the three types are "g" or "G", "p" or "P", and "c" or "C". For example, to import POST and cookie variables, with cookie variables overwriting POST variables, types would be "cp". If given, the variable names are prefixed with prefix. If prefix is not specified or is an empty string, a notice-level error is sent due to the possible security hazard.

Get Programming PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.