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?

1 Answer 1

3

Maybe this is your friend:

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

Sign up to request clarification or add additional context in comments.

2 Comments

That looks good - do you know of anything a little more lightweight?
yep, something that looks like a single function would be appreciated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.