PHPTutorial
Learn PHP
PHP is a powerful server-side scripting language for making dynamic and interactive Web pages.
PHP is widely-used, open-source and free.
Start learning PHP now »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
<!DOCTYPE html><html><body> <?phpecho 'My first PHP script!';?></body></html>Try it Yourself »Click on the "Try it Yourself" button to see how it works.
PHP Exercises
Most chapters in this tutorial end with exercises where you can check your knowledge.
PHP Examples
Learn by examples! This tutorial supplements all explanations with clarifying examples.
PHP Quiz Test
Learn by taking a quiz! This quiz will give you a signal of how much you know, or do not know, about PHP.
Track Your Progress
Create a 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
Join the leaderboard and compete with others
Get your own avatar and unlock new skins
Create your own personal website
Note: This is an optional feature. You can study at W3Schools without creating an account.
PHP References
W3Schools' PHP reference contains different categories of all PHP functions, keywords and constants, along with examples.

