Fixed whitespace issues in code samples. Some OO examples were still using procedural code that now use OO style. Also swapped out a couple echos for printfs for readability in error handling.

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