improves php example