use OO code in OO example (doc #62180)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332496 c90b9560-bf6c-de11-be94-00142212c4b1
output wants newlines (doc #62180)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332497 c90b9560-bf6c-de11-be94-00142212c4b1