How do I access a hash from an extention/module?
| From: | eric at terra dot telemediair dot nl | Date: | Thu, 06 Jun 2002 09:14:32 +0000 |
| Subject: | How do I access a hash from an extention/module? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-84921@lists.php.net to get a copy of this message | ||
Hi,
I have posted this message before to the general list, but it seems
nobody there can help me so I hope someone here might know...
I am a bit stuck right now, I want to access the values of a global hash
(actually it is a session variable) from within my PHP extention/module.
So I want to be able to see which keys are defined in a hash, and what
the corresponding value in this hash is for each key.
Could someone please give me a small example how this is done? I have
looked in the source code of the other extentions but I couldn't find
anything that could be of any help (I might have missed it though).
--
#!perl # Life ain't fair, but root passwords help.
# Eric Veldhuyzen eric@terra.telemediair.nl
$!=$;=$_+(++$_);($:,$~,$/,$^,$*,$@)=$!=~ # Perl Monger
/.(.)...(.)(.)....(.)..(.)..(.)/;
$^$~$/$: $^$*$@$~ $_>&$;