Yes, w3schools.com is the best site for learning PHP. Before you write the code, don't forget to install XAMPP... Good luck..
teaching php or learning php? For learning you can use w3schools But i would suggest you to install xamp, then learn the basics from w3schools, then try designing different algorithms and test your skills. Eventually you will run into errors, try to find their solution using google and gradually you will learn more.