Re: Trouble getting $HTTP_RAW_POST_DATA

From: Date: Fri, 01 Aug 2003 15:30:55 +0000
Subject: Re: Trouble getting $HTTP_RAW_POST_DATA
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157964@lists.php.net to get a copy of this message
--- Curt Zirzow <curt@zirzow.dyndns.org> wrote: > Since print_r is usually used for debugging, it would be nice that > php does this for you. Any comments on this before i throw the > idea to the php-dev list? As of 4.3.0, you can store the output of print_r() in a variable, so that allows developers to do whatever they want. For example, you can apply htmlentities() with something like the following: echo '<pre>' . htmlentities(print_r($_POST, 1)) . '</pre>'; Hope that helps. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/

« previous php.general (#157964) next »