Re: Trouble getting $HTTP_RAW_POST_DATA

From: Date: Fri, 01 Aug 2003 15:45:03 +0000
Subject: Re: Trouble getting $HTTP_RAW_POST_DATA
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-157968@lists.php.net to get a copy of this message
* Thus wrote Chris Shiflett (shiflett@php.net): > --- 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>'; hmmm.. that should work. I was kinda under the impression that print_r returns an array with that second paramter passed. > > Hope that helps. Thanks Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#157968) next »