You are here: Re: Information Regarding $_Session and Extract « PHP Programming Language « IT news, forums, messages
Re: Information Regarding $_Session and Extract

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация