PHP Get System Variable method summary, PHP get variable summary
The example in this paper describes how PHP obtains system variables. Share to everyone for your reference. Specific as follows:
Here you get a variety of system variables through some PHP built-in functions.
$v = Get_defined_vars ()//Returns an array Print_r ($v) consisting of all defined variables,//get all defined Objects$v = Get_object_vars ();// Returns an associative array of object Properties Print_r ($v);//Classicphpinfo ();//output information about PHP configuration//php version (something like:4.3.10) print phpversion ();// Output version number: 5.3.3
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/1008000.html www.bkjia.com true http://www.bkjia.com/PHPjc/1008000.html techarticle PHP Gets the system variable method Summary, PHP gets the variable summary in this paper, we describe how PHP obtains system variables. Share to everyone for your reference. As follows: Here through some p ...