$_SERVER$_POST$_GET
SHLVL:  1
PORT:  49892
HOME:  /app
PS1:  \[\033[01;34m\]\w\[\033[00m\] \[\033[01;32m\]$ \[\033[00m\]
_:  /bin/sh
PATH:  /usr/local/bin:/usr/bin:/bin
PWD:  /app
DYNO:  web.1
HTTP_X_REQUEST_START:  1406071573201
HTTP_X_REQUEST_ID:  ea207ea3-e0ba-4f75-ac5e-312c86e50111
HTTP_X_FORWARDED_PROTO:  http
HTTP_X_FORWARDED_PORT:  80
HTTP_X_FORWARDED_FOR:  54.196.198.241
HTTP_USER_AGENT:  CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_HOST:  csci571.herokuapp.com
HTTP_CONNECTION:  close
HTTP_ACCEPT_LANGUAGE:  en-us,en-gb,en;q=0.7,*;q=0.3
HTTP_ACCEPT_ENCODING:  x-gzip, gzip, deflate
HTTP_ACCEPT:  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
SERVER_SIGNATURE:  
SERVER_SOFTWARE:  Apache/2.2.22 (Unix) PHP/5.3.10
SERVER_NAME:  csci571.herokuapp.com
SERVER_ADDR:  172.18.67.26
SERVER_PORT:  80
REMOTE_ADDR:  10.93.15.235
DOCUMENT_ROOT:  /app/www
SERVER_ADMIN:  you@example.com
SCRIPT_FILENAME:  /app/www/show_vars.php
REMOTE_PORT:  33695
GATEWAY_INTERFACE:  CGI/1.1
SERVER_PROTOCOL:  HTTP/1.1
REQUEST_METHOD:  GET
QUERY_STRING:  time[]=1&time[]=2&time[]=3&submit=Submit
REQUEST_URI:  /show_vars.php?time[]=1&time[]=2&time[]=3&submit=Submit
SCRIPT_NAME:  /show_vars.php
PHP_SELF:  /show_vars.php
REQUEST_TIME:  1406071573
empty
time:  Array
     0:  1
     1:  2
     2:  3
submit:  Submit

Handling Arrays

PHP also accepts multidimensional arrays as an form input. To create an array, add brackets to end of the name variable. (e.g. time[]). For example, if there is an input named time[], it would be inputted into the time[] array in PHP.