SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict bimalpoudel's Avatar
    Join Date
    Feb 2009
    Location
    Kathmandu, Nepal
    Posts
    279
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP array log: back to php array variable

    Suppose a file contains a following print_r() dump:
    Code:
    Array
    (
        [page] => orders-paypal-payment-confirm.php
        [order_id] => 325
        [hash] => 921dad8ddc58e54ac8bfef66d6a19bba
        [mc_gross] => 19.00
        [protection_eligibility] => Ineligible
    )
    Is there a way to get back to the php's array variable by reading this content?
    (Just like unserialize($string))
    Bimal Poudel @ Sanjaal Framework over Smarty Template Engine
    ASKING INTERESTING QUESTIONS ON SITEPOINT FOURM

    Hire for coding support - PHP/MySQL

  2. #2
    SitePoint Zealot
    Join Date
    Jun 2011
    Location
    Kolding, Denmark
    Posts
    108
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quick google search give this manual entry http://www.php.net/manual/en/function.print-r.php#93529


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •