View all POST variables in PHP
This little snippet has really helped me while learning PHP and GET/POST requests. It prints a pre-formatted array of all POST variables.
echo "<pre>"; print_r($_POST) ; echo "</pre>";
Written by Tyler McEntee
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#