Wednesday, 20 March 2013
SuperGlobal Arrays In Php Tutorial
SuperGlobal Arrays In Php :
Php Arrays |
There are predefined arrays variables in php. They are called SuperGlobal Arrays. It means that you can get their data in a web page at any place. And for using these arrays globally in the web page, there is no need to add the keyword globe in php. We will discuss arrays in coming tutorials. In this post we will be explaining SuperGlobal Arrays.
Types Of Super Global Arrays And Its Description :
Array | Description |
| It includes and consists of all global scope variables |
| Data sent by HTTP Response to the server is foung in this address area. The data includes name of running page, name of server, Htto Version Number, Remote Ip Address etc. |
| It consists of all querystring variables that are sent along with URL |
| Field Area found in related page is stored in this area |
| It consists of all data of cookies which is sent to server by the client. It is saved on client machine is for of a file with cookies data. Users are identified with the help of cookies. For example, When you log in to Hotmail then you have to put your ID and Password in a form. This form has a check box which has written that “Remember me on this computer “. When you check this checkbox then your information will be stored in the cookie. Because of this you will not have to enter your email Id and Password again when you login next time in hotmail. Because your information will be automatically retrieved from Cookies. |
| When we upload any file with the help of Post Method then the information of this is stored in $_FILES Array. |
| It includes all those variables that are made as the session variables. |
| It is a 3 in one array. It consists of $_POST, $_GET, $_COOKIES. |
In the above table, we have listed superglobal variables. They might look difficult to understand, But actually they are very easy. You will be able to understand them very easily when we will be explaining them with the help of examples. Since it is not possible to explain all these in one post so we will be explaining in next post in detail.
Php SuperGlobal Arrays Tutorial In Urdu:
Php SuperGlobal Arrays Tutorial In Urdu |
Author: Mohammad
Mohammad is the founder of STC Network which offers Web Services and Online Business Solutions to clients around the globe. Read More →
Related Posts:
Arrays Computer Science PHP Programming Tricks and Tutorials Web Development
Subscribe to:
Post Comments (Atom)
thanks for sharing the useful tutorial...
ReplyDelete