1
4

2 回答 2

5

No, this is not by design. You have three newline output.

Try to delete the close tag of php ?>, if you don't have any html after php code.

Another way is just put exit; right after echo, you won't get newline again.

于 2012-06-20T02:07:53.917 回答
1

... right below your

echo 'ok';

paste another snippet:

echo '--------new line------';

if the gap (extra returns) show between your first echo and the -----new line----- it would be more than strange:) However if it shows below the ------new line----- you have probably some extra HTML text (tags) below your PHP statement.

于 2012-06-20T02:29:14.750 回答