Added PHP examples 1-4 from bug 5896.

On branch master