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 #175874 is a reply to message #175872] Thu, 03 November 2011 16:53 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Thu, 03 Nov 2011 08:24:01 -0700, bob wrote:

> Can I count on the print_r function to output info in the same format
> always?

No, if you want a consistently formatted text representation of an array
to, for example, transfer data between applications, you might be better
either using the json encoding, or the built in serialisation, or writing
your own array to text function.

Obviously, whichever one you use, you'll need matching routines at the
the other end. json encoding is fairly well supported with code or
libraries available for many different languages at www.json.org

Although there's nothing there for ada, fortran or pascal yet :(

Rgds

Denis McMahon
[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:06:10 GMT 2024

Total time taken to generate the page: 0.05247 seconds