Free tutorial
Intermediate
Learn PHP
step by step
Learn PHP for server-side web development. Short lessons, live examples you can run in your browser, exercises and quizzes.
- 9 topics
- 17 lessons
- Try-it-yourself editor
- No sign-up needed
Curriculum
PHP tutorial outline
9 topics · 17 lessons · learn in order or jump to any lesson
-
1 PHP Fundamentals Variables, data types, and basic syntax. 2 lessons
-
2 Strings & Numbers Manipulate text and work with numbers. 2 lessons
-
3 Control Structures Make decisions and repeat actions with conditionals and loops. 2 lessons
-
4 Arrays Work with indexed and associative arrays. 2 lessons
-
5 Functions Write reusable code with functions and closures. 2 lessons
-
6 Forms & Superglobals Handle form submissions and PHP superglobal variables. 2 lessons
-
7 File & Database Work with files and connect to MySQL databases. 2 lessons
-
8 OOP in PHP Object-oriented programming with classes, objects, and inheritance. 2 lessons
-
9 PHP Best Practices Write secure, maintainable PHP code. 1 lesson