$_SERVER$_POST$_GET
SHLVL:  1
PORT:  33572
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:  1397632647007
HTTP_X_REQUEST_ID:  8c70b1e5-808b-488a-9b57-87c1ca57f39c
HTTP_X_FORWARDED_PROTO:  http
HTTP_X_FORWARDED_PORT:  80
HTTP_X_FORWARDED_FOR:  107.21.67.191
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.231.98
SERVER_PORT:  80
REMOTE_ADDR:  10.220.166.97
DOCUMENT_ROOT:  /app/www
SERVER_ADMIN:  you@example.com
SCRIPT_FILENAME:  /app/www/show_vars.php
REMOTE_PORT:  47882
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:  1397632647
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.