PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.
PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.
Start learning PHP now » 🏁Tip: Sign in to track your progress - it's free.
Easy Learning with "PHP Tryit"With our online "PHP Tryit" editor, you can edit the PHP code, and click on a button to view the result.
Example Try it Yourself »Click on the "Try it Yourself" button to see how it works.
PHP ExercisesMany chapters in this tutorial end with an exercise where you can check your level of knowledge.
See all PHP Exercises
PHP ExamplesLearn by examples! This tutorial supplements all explanations with clarifying examples.
See All PHP Examples
PHP Quiz TestLearn by taking a quiz! This quiz will give you a signal of how much you know, or do not know, about PHP.
Start PHP Quiz!
Track Your Progress Create a free W3Schools account and get access to more features and learning materials: View your completed tutorials, exercises, and quizzes Keep an eye on your progress and daily streaks Set goals and create learning paths Create your own personal websiteSign Up for Free
Note: This is an optional feature. You can study at W3Schools without creating an account.
PHP ReferencesW3Schools' PHP reference contains different categories of all PHP functions, keywords and constants, along with examples.
Array Calendar Date Directory Error Exception Filesystem Filter FTP JSON Keywords Libxml Mail Math Misc MySQLi Network Output Control RegEx SimpleXML Stream String Var Handling XML Parser Zip Timezones Kickstart your careerGet certified by completing the course
Get certified w3schools CERTIFIED . 2025 ❮ Home Next ❯ ★ +1 Track your progress - it's free! Log in Sign Up