Table of Content
Basics
- Need for PHP
- PHP Evolution
- PHP Usage
- PHP Comments
- PHP Script Life cycle
Variable and constants
- Variables
- Constants
- Data Types
- Special Characters
Operators
- Arithmetic
- Assignment
- Comparison
- Concatenation
- Logical Operators
- Bitwise Operators
- Unary Operators
Conditionals
- If-else
- Switch
- Ternary Operator
Loop constructs
- While
- For
- For each
- Do while
- Continue
- Break
Strings
- Basics
- Single quoted
- Double quoted
- Heredoc
- Nowdoc
Arrays
- Basics
- Specifying Array
- Accessing array elements
- Creating/modifying Array
- Reading array values
- Removing array values
- Array Traversal
- Useful PHP Array functions
Functions
- Basics
- User-defined functions
- Function arguments
- Returning values
- Variable Functions
- Built-in Functions
- Anonymous Functions
Classes
- Basics
- Class Property
- Class Constants
- Constructor and Destructor
- Class Visibility
- Object Inheritance
- Class Abstraction
- Object Interfaces
- Traits
- Overloading
- Object Iteration
- Object Cloning
- Objects and references
File Handling
- Basics
- Creating a file
- Opening a File
- Reading from a file
- Writing to a file
- Appending a file
- Closing a file
- Deleting a file
- Useful Functions
Database
- Basics
- Database Connection
- Table Creation
- Inserting Data
- Database Updation
- Deleting Records
- Searching Records
- Other Table Operations
- MySQL Error Handling
Cookies management
- Cookies
- setcookie
- setrawcookie
- Cookie Setting or Removal
- Accessing Cookies
- Expiring Cookies
Session
- Basics
- Session Internals
- Session Creation
- Deleting Sessions and Variables
- Custom Session Handlers
- Session Upload Progress
- Sessions and security
- Sessions Functions
Forms
- Basics
- Create a Basic Form
- Input control or “control”
- Receiving Form Data
- Variables From External Sources
- Image Submission
Miscellaneous
- Security
- Optimization
- Installation
- Error Handling