Easy Tutorial
❮ Func Curl_Share_Setopt Php Types Comparisons ❯

PHP import_request_variables() Function

Available PHP Functions

The importrequestvariables() function imports GET/POST/Cookie variables into the global scope. This function is no longer supported in the latest versions of PHP.

The importrequestvariables() function imports GET/POST/Cookie variables into the global scope. This is useful if you disable register_globals but still need some global variables.

Version Requirements: PHP 4 >= 4.1.0, PHP 5 < 5.4.0

Syntax

bool import_request_variables ( string $types [, string $prefix ] )

Parameter Description:

Return Value

None.

Example

<?php
// This will import GET and POST variables
// Using tutorialpro_ as the prefix
import_request_variables("gP", "tutorialpro_");

echo $tutorialpro_foo;
?>

Available PHP Functions

❮ Func Curl_Share_Setopt Php Types Comparisons ❯