$_SERVER$_POST$_GET
SHLVL:  1
PORT:  10327
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_HOST:  csci571.herokuapp.com
HTTP_CONNECTION:  close
HTTP_USER_AGENT:  CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT:  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE:  en-US,en;q=0.5
HTTP_IF_MODIFIED_SINCE:  Thu, 28 Jan 2021 10:32:46 GMT
HTTP_ACCEPT_ENCODING:  br,gzip
HTTP_X_REQUEST_ID:  ddb6f878-89b7-4848-843f-65376c45df5f
HTTP_X_FORWARDED_FOR:  44.192.27.11
HTTP_X_FORWARDED_PROTO:  http
HTTP_X_FORWARDED_PORT:  80
HTTP_VIA:  1.1 vegur
HTTP_CONNECT_TIME:  0
HTTP_X_REQUEST_START:  1618284019587
HTTP_TOTAL_ROUTE_TIME:  0
SERVER_SIGNATURE:  
SERVER_SOFTWARE:  Apache/2.2.22 (Unix) PHP/5.3.10
SERVER_NAME:  csci571.herokuapp.com
SERVER_ADDR:  172.16.202.198
SERVER_PORT:  80
REMOTE_ADDR:  10.186.202.203
DOCUMENT_ROOT:  /app/www
SERVER_ADMIN:  you@example.com
SCRIPT_FILENAME:  /app/www/show_vars.php
REMOTE_PORT:  10945
GATEWAY_INTERFACE:  CGI/1.1
SERVER_PROTOCOL:  HTTP/1.1
REQUEST_METHOD:  GET
QUERY_STRING:  time%5B%5D=1&time%5B%5D=2&time%5B%5D=3&submit=Submit
REQUEST_URI:  /show_vars.php?time%5B%5D=1&time%5B%5D=2&time%5B%5D=3&submit=Submit
SCRIPT_NAME:  /show_vars.php
PHP_SELF:  /show_vars.php
REQUEST_TIME:  1618284019
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.