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.

p.s. I increased my AdSense revenue by 200% using AI 🤖. Read my Ezoic review to find out how.

Leave a reply

Your email address will not be published.