keyboard_arrow_down

Latest posts

Dump all POST and GET keys and values (PHP)

Here is the PHP code dto dump all $_POST and $_GET keys and values to debug on a page:

foreach ($_POST as $key => $value) {
    echo "Key: $key; Value: $value<br>";
}

foreach ($_GET as $key => $value) {
    echo "Key: $key; Value: $value<br>";
}

Leave a comment