# Little help with PHP parsing..?

**URL:** <https://forum.kirupa.com/t/little-help-with-php-parsing/187647>\
**Category:** programming\
**Created:** [May 1, 2006, 8:20am UTC](https://forum.kirupa.com/t/little-help-with-php-parsing/187647 "2006-05-01T08:20:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zicemaster](https://avatars.discourse-cdn.com/v4/letter/z/b77776/32.png) [@zicemaster](https://forum.kirupa.com/u/zicemaster)\
**Post date:** [May 1, 2006, 8:20am UTC](https://forum.kirupa.com/t/little-help-with-php-parsing/187647/1 "2006-05-01T08:20:37Z")

</div>

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:

```auto

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:

```php

        $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;

```

---

<div class="post-metadata">

**Author:** ![zicemaster](https://avatars.discourse-cdn.com/v4/letter/z/b77776/32.png) [@zicemaster](https://forum.kirupa.com/u/zicemaster)\
**Post date:** [May 1, 2006, 8:40am UTC](https://forum.kirupa.com/t/little-help-with-php-parsing/187647/2 "2006-05-01T08:40:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![zicemaster](https://avatars.discourse-cdn.com/v4/letter/z/b77776/32.png) [@zicemaster](https://forum.kirupa.com/u/zicemaster)\
**Post date:** [May 1, 2006, 9:21am UTC](https://forum.kirupa.com/t/little-help-with-php-parsing/187647/3 "2006-05-01T09:21:08Z")

</div>

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