PHP 5 has a much more Java-like feel to it than previous iterations of the language, but it's still a very different beast and so the superficial similarities might be misleading.

\r\n\r\n

And, personally, I wouldn't do "raw" PHP these days for any amount of money; several good frameworks (CakePHP seems to be the best of the lot) have popped up to make the development process quite a bit less painful.