07-23-2008
store key value
Hi All,
I have a string like
echo $var
D_PROC=20080723 I_REPROC=N C_TYPE_FILE=INBOUND
Now I want it be stored in an associative array so that when we
echo $arr[D_PROC] it should be 20080723
6 More Discussions You Might Find Interesting
1. Programming
how can i store a value which is larger than a long double value??
please help me..
-sham- (2 Replies)
Discussion started by: shamal
2 Replies
2. Shell Programming and Scripting
When i grep a file and store it in a file it is storing as a zero byte file any way to avoid that..... (6 Replies)
Discussion started by: arunkumar_mca
6 Replies
3. Cybersecurity
Hi,
When logging in using SSH access (to a remotely
hosted account), I received a prompt to accept
a server's key fingerprint. Wrote that string
of code down for comparision.
Already emailed my host for their listing of the
string of code for the server's key fingerprint
(for comparison,... (1 Reply)
Discussion started by: Texan
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Whenever i press the backspace key, a new line appears, i.e. it works like a enter key. :confused:
Thanks (2 Replies)
Discussion started by: vibhor_agarwali
2 Replies
5. Solaris
Hi, I've used the following way to set ssh public key authentication and it is working fine on Solaris 10, RedHat Linux and SuSE Linux servers without any problem. But I got error 'Server refused our key' on Solaris 8 system. Solaris 8 uses SSH2 too. Why? Please help. Thanks.
... (1 Reply)
Discussion started by: aixlover
1 Replies
6. Shell Programming and Scripting
Hi All,
I have a XML file which is looks like as below. <<please see the attachment >>
<?xml version="1.0" encoding="UTF-8"?>
<esites>
<esite>
<name>XXX.com</name>
<storeId>10001</storeId>
<module>
... (4 Replies)
Discussion started by: Rajeev_hbk
4 Replies
LEARN ABOUT PHP
get_defined_vars
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)