A structured, beginner-friendly collection of PHP core concepts designed for use with Obsidian. These notes are organized by topic with clear examples, making them perfect for students, junior developers, or anyone revising PHP fundamentals.
The notes are divided into topic-wise markdown files. Each file contains concise explanations and live PHP examples.
# | Title | Description |
---|---|---|
0 | Basic Structure of PHP | Introduction to PHP, tags, basic syntax structure |
1 | Syntax | Overview of PHP syntax, including operators (arithmetic, logical, etc.). |
2 | Variables & Data Types | How to declare variables and use different data types in PHP. |
3 | Control Structures | Flow control using if , else , switch , loops like while , for , etc. |
4 | Functions | Declaration, parameters, default values, return types, variadic, etc. |
5 | Data Structures | Working with arrays, associative arrays, and basic data handling. |
6 | Standard Libraries | Common built-in string, array, math, and utility functions in PHP. |
7 | Object-Oriented Features | OOP principles: classes, objects, inheritance, constructors, encapsulation. |
8 | Error Handling | Handling errors with try , catch , throw , and finally . |
9 | Input and Output | Handling user input via forms and working with files (read/write). |
10 | Miscellaneous | Sessions, cookies |
- Written in Markdown β easy to read and portable across editors
- Loaded with real PHP examples for each topic
- Ideal for Obsidian (supports backlinks, graph view, tagging)
- Good for interview prep, revision, or teaching others
- Clone or download the repo:
git clone https://github.com/ferdous-dev/php.git
- Open the folder in Obsidian, VS Code, or any markdown editor.
- Use the notes like a reference book β copy & run code snippets locally to practice.
Have an idea to improve the notes? Found a mistake? PRs are welcome!
You can contribute:
- More examples
- PHP 8.x/8.1+ feature notes
- Real-world mini challenges
MIT License β feel free to use, share, or modify these notes.
Created by Ferdous Ahmed
PHP learner & aspiring Laravel developer
π§π© Based in Bangladesh