A
amerar
Hi All,
Can I create an associative array where the key is the value of another
associative array?
Say I have the following:
$FORM{'name'} = 'JohnDoe';
Then, I want to create $names{$FORM{'name'}} = some value
That is not working, but I want to create an associative array where
the key is the value from another associative array without having to
assign an interium variable........
Any help with the syntax?
Thanks.
Can I create an associative array where the key is the value of another
associative array?
Say I have the following:
$FORM{'name'} = 'JohnDoe';
Then, I want to create $names{$FORM{'name'}} = some value
That is not working, but I want to create an associative array where
the key is the value from another associative array without having to
assign an interium variable........
Any help with the syntax?
Thanks.