Unix and Linux Discussions Tagged with thank you |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
11,108 |
AIX |
|
|
|
5 |
6,128 |
Shell Programming and Scripting |
|
|
|
0 |
9,385 |
What is on Your Mind? |
|
|
|
7 |
30,619 |
What is on Your Mind? |
|
|
|
2 |
3,557 |
What is on Your Mind? |
|
|
|
1 |
3,695 |
What is on Your Mind? |
|
|
|
1 |
3,752 |
What is on Your Mind? |
|
|
|
6 |
1,694 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
2,068 |
Complex Event Processing RSS News |
|
|
|
16 |
155,405 |
Programming |
|
|
|
5 |
4,327 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
1,908 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
10,430 |
Filesystems, Disks and Memory |
|
|
|
5 |
3,825 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,172 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,355 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
2,858 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,778 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,897 |
Shell Programming and Scripting |
|
|
|
3 |
2,795 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,712 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,056 |
Programming |
|
|
|
2 |
3,019 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,023 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,713 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,260 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
5,469 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
4,763 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,107 |
Programming |
|
|
|
2 |
4,014 |
Programming |
|
|
|
2 |
2,193 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,875 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
9,517 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
2,737 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
4,353 |
IP Networking |
|
|
|
1 |
3,765 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
13,659 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,525 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
6,000 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,847 |
UNIX for Dummies Questions & Answers |
GET_DEFINED_VARS(3) 1 GET_DEFINED_VARS(3)
get_defined_vars - Returns an array of all defined variables
SYNOPSIS
array get_defined_vars (void )
DESCRIPTION
This function returns a multidimensional array containing a list of all defined variables, be them environment, server or user-defined
variables, within the scope that get_defined_vars(3) is called.
RETURN VALUES
A multidimensional array with all the variables.
EXAMPLES
Example #1
get_defined_vars(3) Example
<?php
$b = array(1, 1, 2, 3, 5, 8);
$arr = get_defined_vars();
// print $b
print_r($arr["b"]);
/* print path to the PHP interpreter (if used as a CGI)
* e.g. /usr/local/bin/php */
echo $arr["_"];
// print the command-line parameters if any
print_r($arr["argv"]);
// print all the server vars
print_r($arr["_SERVER"]);
// print all the available keys for the arrays of variables
print_r(array_keys(get_defined_vars()));
?>
SEE ALSO
isset(3), get_defined_functions(3), get_defined_constants(3).
PHP Documentation Group GET_DEFINED_VARS(3)