PHP unfamiliar tags but commonly used

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
klevz
Forum Newbie
Posts: 5
Joined: Mon Sep 08, 2008 8:54 pm
Location: Philippines
Contact:

PHP unfamiliar tags but commonly used

Post by klevz »

what are these PHP tags for?

Code: Select all

$_COOKIE[]
$_ENV[]
$_FILES[]
$_REQUEST[]
$_SESSION[]
$_SERVER[]
can anyone give me some discussions about the purpose of these tags and examples.. :o

thanks,, best regards,,
User avatar
Ziq
Forum Contributor
Posts: 194
Joined: Mon Aug 25, 2008 12:43 am
Location: Russia, Voronezh

Re: PHP unfamiliar tags but commonly used

Post by Ziq »

It's a superglobal predefined variables. Read manual.
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Re: PHP unfamiliar tags but commonly used

Post by pcoder »

Try this:
May be you will get more idea.
It is just for an example.

Code: Select all

 
print '<pre>';
print_r($_SERVER);
print '</pre>';
 
Post Reply