updated clear php sample