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
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.
SYLLABUS / 22
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
- 01LESSONLESSON 1: Printing text with echoAvailable now
- 02LESSONLESSON 2: Variables and assignmentLocked
- 03LESSONLESSON 3: Basic arithmetic operatorsLocked
- 04LESSONLESSON 4: Joining text (concatenation)Locked
- 05LESSONLESSON 5: Arrays – introductionLocked
- 06LESSONLESSON 6: Associative arraysLocked
- 01QUIZQuiz 1: lessons 1–6Locked
- 07LESSONLESSON 7: Adding elements to an arrayLocked
- 08LESSONLESSON 8: Removing elements from an arrayLocked
- 09LESSONLESSON 9: Comparisons and logic (==, ===, &&, ||, !, precedence)Locked
- 10LESSONLESSON 10: Conditional statements if/elseLocked
- 11LESSONLESSON 11: Switch – an alternative to many ifsLocked
- 12LESSONLESSON 12: The while loop — repeating until the condition stops being metLocked
- 02QUIZQuiz 2: lessons 7–12Locked
- 13LESSONLESSON 13: The for loop — iteration with a counter and a stepLocked
- 14LESSONLESSON 14: The foreach loop — going through all the elements of an array in a simple wayLocked
- 15LESSONLESSON 15: Functions – definition and callLocked
- 16LESSONLESSON 16: Function arguments — default values and callsLocked
- 17LESSONLESSON 17: Returning values — you will return the result of a function with returnLocked
- 18LESSONLESSON 18: Nested conditionsLocked
- 19LESSONLESSON 19: Modulo and practical applications (%)Locked
- 03QUIZQuiz 3: lessons 13–19Locked
- +EXAMConfirm 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