PHP function import_request_variables()

Availability in versions: PHP 4.1.0

Import GET/POST/Cookie variables into the global scope

Parameters

Parameter Data type Default value Note
$types string not Using the types parameter, you can specify which request variables to import. You can use 'G', 'P' and 'C' characters respectively for GET, POST and Cookie. These characters are not case sensitive, so you can also use any combination of 'g', 'p' and 'c'. POST includes the POST uploaded file information.
$prefix string null Variable name prefix, prepended before all variable's name imported into the global scope. So if you have a GET value named "userid", and provide a prefix "pref_", then you'll get a global variable named $pref_userid.

Return values

bool

Returns true on success, otherwise false on failure.

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.