FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » print_r
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: print_r [message #175873 is a reply to message #175872] Thu, 03 November 2011 15:58 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 11/3/2011 11:24 AM, bob wrote:
> Can I count on the print_r function to output info in the same format
> always?
>
> I did a print_r on an array and got something like this:
>
> Array
> (
> [status] => 0
> [email] => bob(at)coolgroups(dot)com
> [firstname] => bob
> [lastname] => smith
> [id] => 148
> [access] => 2040ad981d3302d63564b990fea38268
> )
>
>
> I want to make sure that doesn't change in PHP 6 or 7.
>

There is no guarantee the output format will remain the same in any version.

But does it make a difference? No. It's meant to be a debug aid, not a
way of passing information to another program or similar.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: shiping cart program
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 07 05:04:29 GMT 2024

Total time taken to generate the page: 0.03802 seconds