Skip to content
Home Tutorials Roadmaps Courses Classroom Training Blog
Log in Join free
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. 1 PHP Fundamentals Variables, data types, and basic syntax.
  2. 2 Strings & Numbers Manipulate text and work with numbers.
  3. 3 Control Structures Make decisions and repeat actions with conditionals and loops.
  4. 4 Arrays Work with indexed and associative arrays.
  5. 5 Functions Write reusable code with functions and closures.
  6. 6 Forms & Superglobals Handle form submissions and PHP superglobal variables.
  7. 7 File & Database Work with files and connect to MySQL databases.
  8. 8 OOP in PHP Object-oriented programming with classes, objects, and inheritance.
  9. 9 PHP Best Practices Write secure, maintainable PHP code.