Little help with PHP parsing..?

Ok… I kinda need to be able to return stuff to flash in a more readable format. Can I possibly strip the array of commas and convert it to a string? Should I try to parse it in flash?

I kinda need a basic string/array parsing tutorial.

Heres what I get in flash:


Joe,Heloooooooooooo!!!! *example text*
,
        ,Joe,Heloooooooooooo!!!! *example text*
,
        ,Joe,Heloooooooooooo!!!! *example text*
,
        ,Joe,Yo wazzupp??? Whats going down? *example text*
,
        ,John Doe,Yo wazzupp??? Whats going down? *example text*
,
        ,John Doe,Yo wazzupp??? Whats going down? *example text*
,


This is what I'm aiming for>>>

Joe
Heloooooooooooo!!!! *example text*
- -  - -  - -  - -  - -  - -  - -  - -  - -  - - -
Joe
Heloooooooooooo!!!! *example text*
- -  - -  - -  - -  - -  - -  - -  - -  - -  - - -
Joe
Yo wazzupp??? Whats going down?
*example text*
- -  - -  - -  - -  - -  - -  - -  - -  - -  - - -


Not exactly very orderly… Heres my php code:


        $sql = 'SELECT * FROM shoutbox ORDER BY id DESC';
        $result = mysql_query($sql);
        while ($row = mysql_fetch_assoc($result)){
        foreach($row as $key=>$value){
            if ($key != id ){
        array_push($myArray, $value);
            }
        }
        array_push($myArray, "
        ");
        }
        return $myArray;

Btw… Anyone know of a good php editor with AUTOMATIC spacing and formatting? :slight_smile:

I just decided to do my parsing in flash, kinda easyier and I’m used to it, will appreciate any advice though!