fixed PHP code sample