Going Through Arrays

Here we are iterating over the values of an array.

4 2 1 42 11 -3 Thud

This is the way to do it. (7 words)

Here are all the _SERVER variables sent to the script:

USERapache
HOME/var/www
SCRIPT_NAME/~bennet/cs302/php/foreach.php
REQUEST_URI/~bennet/cs302/php/foreach.php
QUERY_STRING
REQUEST_METHODGET
SERVER_PROTOCOLHTTP/1.1
GATEWAY_INTERFACECGI/1.1
REMOTE_PORT62149
SCRIPT_FILENAME/var/www/homes/bennet/cs302/php/foreach.php
SERVER_ADMINroot@localhost
CONTEXT_DOCUMENT_ROOT/var/www/html
CONTEXT_PREFIX
REQUEST_SCHEMEhttp
DOCUMENT_ROOT/var/www/html
REMOTE_ADDR3.144.23.138
SERVER_PORT80
SERVER_ADDR10.27.0.23
SERVER_NAMEsandbox.mc.edu
SERVER_SOFTWAREApache/2.4.62 (Fedora Linux) OpenSSL/3.2.2 mod_wsgi/5.0.0 Python/3.12
SERVER_SIGNATURE
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOSTsandbox.mc.edu
HTTP_ACCEPT_ENCODINGgzip, br, zstd, deflate
HTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT*/*
proxy-nokeepalive1
UNIQUE_IDZ2jfOHmhKGT7UlAdjtp_oAAAAFU
FCGI_ROLERESPONDER
PHP_SELF/~bennet/cs302/php/foreach.php
REQUEST_TIME_FLOAT1734926136.5857
REQUEST_TIME1734926136