Posted by Ulf Kadner on 08/23/07 11:34
kimi wrote:
> I am new to PHP. I would need some information on the following:
>
> 1. a) I wanted to know from where the data is extracted and stroed in
> the global assocoative
> arrays ( specifically what will be the contents of $_Session ?)
This arrays are not only global. They are superglobal! It means you can
access it from everywhere.
See: http://www.php.net/manual/en/language.variables.predefined.php
It also descibes what you are asking for.
> b) Is there any way by which i can get to know all the keys of the
> arrays ( specifically what
> are the Keys of $_Session ?)
http://www.php.net/array_keys
> extract($_GET);
> extract($_POST);
> extract($_COOKIE);
> extract($_SERVER);
This is VERY BAD! Its no reason to do things like this.
Ulf
--
_,
_(_p> Ulf [Kado] Kadner
\<_)
^^
Navigation:
[Reply to this message]
|