Results 1 to 2 of 2

Thread: Array Display Problem

  1. #1

    Array Display Problem

    i have the following array result (with print_r)

    Code:
    [TIMESTAMP] => 2009%2d09%2d11T00%3a12%3a41Z     [CORRELATIONID] => be3a644f8cad9     [ACK] => Failure     [L_ERRORCODE0] => 10001     [L_SHORTMESSAGE0] => Internal%20Error     [L_LONGMESSAGE0] => Timeout%20processing%20request )
    I'd like output it like this:

    Code:
    TIMESTAMP=2009%2d09%2d11T00%3a12%3a41Z
    CORRELATIONID=be3a644f8cad9
    ACK=Failure
    etc...
    Using this
    Code:
    foreach ($httpParsedResponseAr as $value) {
        
        echo "$value<br />\n";
    }
    gets me only the value without the name of the entry

    Code:
    2009%2d09%2d11T00%3a12%3a41Z
    be3a644f8cad9
    Failure
    etc...
    Seems too simple but I cant figure it out
    Any ideas?
    Thanks in advance!
    -Miro

  2. #2
    I found the answer

    foreach ($httpParsedResponseAr as $key=>$value) {

    echo
    "$key=$value<br />\n";
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012