Tag Archives: request

var_dump doesn’t work on $_POST and superglobals

Description: Using var_dump($_POST) echoes NULL, also with $_GET and $_REQUEST even when data is sent. Solution: Don’t use var_dump on suberglobals, use print_r($_POST); die(); or add a die() after the var_dump();

Posted in PhP | Tagged , | Leave a comment