Echo POST data array in PHP

Last updated on

To print POST data array:

echo print_r($_POST,true);

If you want better legibility within a browser, wrap in <pre> tags.

echo "<pre>";
echo print_r($_POST,true);
echo "</pre>";

Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.

Leave a reply

Your email address will not be published. Required fields are marked *