M
Mani
I want to extract some info from a file which contains,
name1 account1 email1 email2
name1 account2 email1 email2
name2 account1 email1 email2
name2 account2 email1 email2
then, i came across a code,
$names{$user} {$account} =0;
given "names" is an associative array,
and $user and $account are elements of separate strings.
I guess all values for the key are set to zero.
if it is written as,
$names{$user} =0
all the strings in the associative array "names" are set key values of
zero.
but what does $names{$user} {$account} =0 mean?
-Mani
name1 account1 email1 email2
name1 account2 email1 email2
name2 account1 email1 email2
name2 account2 email1 email2
then, i came across a code,
$names{$user} {$account} =0;
given "names" is an associative array,
and $user and $account are elements of separate strings.
I guess all values for the key are set to zero.
if it is written as,
$names{$user} =0
all the strings in the associative array "names" are set key values of
zero.
but what does $names{$user} {$account} =0 mean?
-Mani