Searching...
Wednesday 3 October 2012

Builtin Global Arrays Of PHP

11:07 pm

Builtin Global Arrays Of PHP 

Builtin Global Arrays Of PHP :

Three Builtin global arrays of PHP :
 
$_GET  : is a builtin global aaray of PHP.
$_POST :  stores all the submitted by the client using GET/POST method .
$_request : is a builtin global array of PHP that stores all the data submited by the client using GET and POST methods and also it stores the cookies submitted by client.

Builtin Global Arrays Of PHP example program

<?php
  Echo count($_GET).”—“.count($_POST).”—“.count($_REQUEST).”<br>”;
Print_r($_GET);
Echo “<br><br>”;
Print_r($_POST);
Echo “<br><br>”;
Print_r($_REQUEST);
Echo “<br><br>”;
Foreach($_REQUEST on $key=>$val)
Echo $key.”—“.$val.”<br>”;
Echo  name.”—“.$_GET[“t1’];
?>

1 comments:

  1. thanks for the information regarding global arrays of PHP

    ReplyDelete