Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Unit 3: Overview

Lesson 20 of 36 in the free Web Based Programming notes on Siksha Sarovar, written by Rohit Jangra.

Unit 3: File Handling and Object-Oriented Programming (OOP) in PHP

Unit 3 elevates PHP programming from simple scripting to structured, professional-grade application development. It introduces two major concepts: File System Handling and Object-Oriented Programming (OOP) — both of which are essential in real-world PHP development.

Why This Unit Matters

File handling allows PHP to persist data beyond a database (e.g., logs, configuration files). OOP transforms how we structure code — instead of writing loose functions, we model real-world entities as objects, making our programs modular, reusable, and easy to maintain.

Key Topics

#TopicCore Concept
1File Inclusioninclude, require, include_once, require_once
2File Handlingfopen, fread, fwrite, fclose, file modes
3Directories & File Infomkdir, rmdir, scandir, filesize, pathinfo
4OOP BasicsClass, Object, Constructor, Destructor, $this
5Advanced OOPAccess Modifiers, Inheritance, final keyword

Visual Overview

Above is the visual overview for Unit 3.