Well, one thing to realise is that there is no standard coding style.
There are a few generally accepted indentation and naming conventions, but it really depends on the individual programmer, or the team (or team leader).
As for your answer, one way would be to limit each line to say, 80 characters.
Then the parameters that overflow this limit would be placed on the following line, e.g.
function foobar($test1, $test2, $test3, $test4,
$test5, $test6, $test7)
{
//wonderful code here
}
of course, given that modern terminals usually dont impose a limit, and one's text editor should have a word-wrap toggle, placing it on one long line is also possible, though somewhat more difficult to view at a glance.