tags:

views:

34

answers:

1

I'm looking for a PHP function that will take a string like this:

    function func() {
           $testing;
       $testing;
}

And turn it into something like this:

function func() {
    $testing;
    $testing;
}

Does anyone have any recommendations?

+2  A: 

Maybe this is your friend:

http://pear.php.net/package/PHP_Beautifier

Jauzsika
That looks good - do you know of anything a little more lightweight?
Kirk