Log, Logging, Objects and Arrays ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • webguynow

    #1

    Log, Logging, Objects and Arrays ?

    On one of the Dev newsgroups mailing.??? I had seen some comments,
    regarding the inability (currently) of PHP to write to a string, as
    opposed to direct output from Function like
    print_r()
    var_dump()

    I'm a bit of a newbie, PHP serialization, but recognize Java has
    Object.toString method. Anything similar, here in PHP ??

    I'm looking to build an complete Enterprise Logging System, to use in
    debugging, just in-case - haha - I made a typo, during these last 2
    months of coding. (I don't expect anything wrong.)
    its a joke ....

    Any coders out there subscribe to Extreme Programming theories ?
    Any using Unit Testing methods ? notes: expert articles
    http://www.zend.com/php/design/patterns1.php Matt Zandstra

    Links and Ref's most welcome TIA RJK
    i_dvlp at hotmail dot com

  • Ken Robinson

    #2
    Re: Log, Logging, Objects and Arrays ?

    "webguynow" <invinfo@rcn.co m> wrote in news:1124469752 .538834.201460
    @f14g2000cwb.go oglegroups.com:
    [color=blue]
    > On one of the Dev newsgroups mailing.??? I had seen some comments,
    > regarding the inability (currently) of PHP to write to a string, as
    > opposed to direct output from Function like
    > print_r()
    > var_dump()
    >
    > I'm a bit of a newbie, PHP serialization, but recognize Java has
    > Object.toString method. Anything similar, here in PHP ??
    >[/color]

    Both print_r() and var_dump() can direct their output to strings. See the
    respective pages in the manual.

    <http://www.php.net/print_r>
    <http://www.php.net/var_dump>

    Ken

    Comment

    Working...