When a user reported that some of my code snippets didn't work I noticed that the apostrophes in WordPress are automatically changed to curly quotes. That obviously brakes the code when php tries to parse it. I did some googling and found a simple solution: The "Unfancy Quotes" plugin which can be found here: http://www.semiologic.com/software/wp-tweaks/unfancy-quote/
Was this post helpful? Buy me a drink :-)
Strange this post is totaly unrelated to what I was searching google for, but it was listed on the first page. I guess your doing something right if Google likes you enough to put you on the first page of a non related search.