
Fundamentals of PHP
Get started with PHP scripting for backend development, form handling, and session control.

Track
Software Development
Level
Foundation
Language
English
Duration
30 hours
Learning Mode
Learn at ALC or at Home
Introduction
- Explain the history, evolution, and versions of PHP to build a strong foundation.
- Demonstrate the use of arithmetic, comparison, and logical operators in PHP.
- Utilize single-dimensional, multidimensional, and associative arrays to store and manipulate data
- Create user-defined functions, pass parameters by reference, and return values effectively.
- Implement classes, objects, constructors, destructors, and inheritance in PHP.
- Manipulate data using arrays, linked lists, queues, and stacks in PHP.
- Design and build a basic PHP-based website incorporating form validation, user authentication, and database interactions.
What you'll learn ?
- Describe PHP syntax, history, and evolution.
- Apply PHP operators and conditional statements to control program execution.
- Develop logic using looping structures such as for, while, and foreach for repetitive tasks.
- Manipulate arrays to store, retrieve, and process data efficiently.
- Design reusable functions to improve code modularity and efficiency.
- Onstruct PHP programs using classes, objects, and OOP principles.
- Configure and run PHP applications on a web server.
Syllabus
Introduction
- History
- Background
- Early versions of PHP
- Current release
- Upgrading from PHP 3
- Upgrading from PHP 4
- The creators of PHP
Operators
- Introduction
- Shorthand unary operators
- Arthemetic Operator
- Increment/Decrement Operator
- Comparison operators
- Complete operator list
- The Ternary Operator
- The scope resolution operator
- Operator precedence and associativity
Conditional Structures
- Introduction
- True & False
- IF else
- Example with coding
- Break
- Continue
- Switch
loop Structures
- Introduction
- For Loop With Syntax
- While Loop With Syntax
- While Loop With Syntax
- Each Loop With Syntax
- loops Basic Example
Coding part of Every loops
- For Loop With Syntax
- For loop in searching of Array
- For loop in Sorting of Array
- While Loop With Syntax
- Do While Loop With Syntax
- For Each Loop With Syntax
Arrays
- Introduction
- Types Of Arrays
- Single Dimensional Array
- Example with Coding
- MultiDimensional Array
- Example with Coding
Passing values
- Introduction
- Parameters
- Example with Coding
- Passing by reference
- Example with Coding
Returing Values
- Introduction
- Default Parameter
- Example with Coding
- Returning By Reference
- Example with Coding
Arrays in Detail
- Insertion in arrays
- Deletion in Arrays
- Sorting Arrays
- Traversing in arrays
- Transpose in arrays
- Merging in arrays
Linked list
- Merging in arrays
- Inserting in linked list
- Deletion in linked list
- Example with Coding
- Queue
- Enque and Deque
Classes & Objects
- Introduction
- Defining Class
- Creating A class
- Example with Coding
- Object
- How to Use object
OOPS Advance Concepts
- Polymorphism
- Example with Coding
- Data Abstraction
- Constructor
- Destructor
- Example with Coding
Inheritance
- Introduction
- Example with Coding
- Iterators
- Example with coding
- Friend Function
- Example with Coding
Setting Up Your Server
- Example with Coding
- Creating the Public HTML Pages
- Creating the Database and its Tables
- Example with coding
- User Login Authentication
- Example with Coding
Work-Centric Approach
The academic approach of the course focuses on ‘work-centric’ education. With this hands-on approach, derive knowledge from and while working to make it more wholesome, delightful and useful. The ultimate objective is to empower learners to also engage in socially useful and productive work. It aims at bringing learners closer to their rewarding careers as well as to the development of the community.
- Step 1: Learners are given an overview of the course and its connection to life and work
- Step 2: Learners are exposed to the specific tool(s) used in the course through the various real-life applications of the tool(s).
- Step 3: Learners are acquainted with the careers and the hierarchy of roles they can perform at workplaces after attaining increasing levels of mastery over the tool(s).
- Step 4: Learners are acquainted with the architecture of the tool or tool map so as to appreciate various parts of the tool, their functions, utility and inter-relations.
- Step 5: Learners are exposed to simple application development methodology by using the tool at the beginner’s level.
- Step 6: Learners perform the differential skills related to the use of the tool to improve the given ready-made industry-standard outputs.
- Step 7: Learners are engaged in appreciation of real-life case studies developed by the experts.
- Step 8: Learners are encouraged to proceed from appreciation to imitation of the experts.
- Step 9: After the imitation experience, they are required to improve the expert’s outputs so that they proceed from mere imitation to emulation.
- Step 10: Emulation is taken a level further from working with differential skills towards the visualization and creation of a complete output according to the requirements provided. (Long Assignments)
- Step 11: Understanding the requirements, communicating one’s own thoughts and presenting are important skills required in facing an interview for securing a work order/job. For instilling these skills, learners are presented with various subject-specific technical as well as HR-oriented questions and encouraged to answer them.
- Step 12: Finally, they develop the integral skills involving optimal methods and best practices to produce useful outputs right from scratch, publish them in their ePortfolio and thereby proceed from emulation to self-expression, from self-expression to self-confidence and from self-confidence to self-reliance and self-esteem!