Knowledge baseExam Center
ENEnglish
Choose language13

Learn PHP — Basic

Learn PHP fundamentals through order, product and task reports. Work with variables, strings and arrays, and create conditions, loops and functions that pass calculation results.

COURSE OVERVIEWREADY
Lessons: 19
Quizzes: 3
All steps: 22
$Ready to start
Knowledge base for this technology

What you will learn

  • Store values in variables, perform arithmetic and percentage calculations, and format results with echo and number_format.
  • Build messages with the concatenation operator, and read, add, remove and count elements of indexed and associative arrays.
  • Choose comparisons and logical operators, and use if/else, switch, nested conditions and while, for and foreach loops.
  • Define and call functions with arguments and default values, return results, and use an early return for edge cases.

Course curriculum

Work through the curriculum step by step. Completed stages are marked, and you can open the next available stage.

19 lessons3 quizzes22 steps total
  1. 01LESSON
    LESSON 1: Printing text with echoAvailable now
  2. 02LESSON
    LESSON 2: Variables and assignmentLocked
  3. 03LESSON
    LESSON 3: Basic arithmetic operatorsLocked
  4. 04LESSON
    LESSON 4: Joining text (concatenation)Locked
  5. 05LESSON
    LESSON 5: Arrays – introductionLocked
  6. 06LESSON
    LESSON 6: Associative arraysLocked
  7. 01QUIZ
    Quiz 1: lessons 1–6Locked
  8. 07LESSON
    LESSON 7: Adding elements to an arrayLocked
  9. 08LESSON
    LESSON 8: Removing elements from an arrayLocked
  10. 09LESSON
    LESSON 9: Comparisons and logic (==, ===, &&, ||, !, precedence)Locked
  11. 10LESSON
    LESSON 10: Conditional statements if/elseLocked
  12. 11LESSON
    LESSON 11: Switch – an alternative to many ifsLocked
  13. 12LESSON
    LESSON 12: The while loop — repeating until the condition stops being metLocked
  14. 02QUIZ
    Quiz 2: lessons 7–12Locked
  15. 13LESSON
    LESSON 13: The for loop — iteration with a counter and a stepLocked
  16. 14LESSON
    LESSON 14: The foreach loop — going through all the elements of an array in a simple wayLocked
  17. 15LESSON
    LESSON 15: Functions – definition and callLocked
  18. 16LESSON
    LESSON 16: Function arguments — default values and callsLocked
  19. 17LESSON
    LESSON 17: Returning values — you will return the result of a function with returnLocked
  20. 18LESSON
    LESSON 18: Nested conditionsLocked
  21. 19LESSON
    LESSON 19: Modulo and practical applications (%)Locked
  22. 03QUIZ
    Quiz 3: lessons 13–19Locked
  23. +EXAM
    Confirm your skills with an examPreparing with this course is optional. You can choose a certification exam for this language and level without completing the course or quizzes. Check your account access and confirm exam authorization.Other status