Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Chapter 1: Introduction to PHP
1.1 What is PHP?
1.2 Why Learn PHP?
Chapter 2: Installing XAMPP
2.1 Configuring php.ini
2.2 Important Links
2.3 Coding our first Web Page
Chapter 3: Basic PHP Tasks
3.1 Displaying Outputs
3.1.1 echo
3.1.2 print
3.1.3 Escaping Characters
3.2 Duplicating Code
3.2.1 include
3.2.2 require
3.2.3 include_once, require_once
3.3 Redirecting Users
Chapter 4: Constants, Variables, Data Types and Operators in PHP
4.1 Constants
4.2 Variables
4.3 Basic Data Types in PHP
4.4 Type Casting
4.5 Operators in PHP
4.5.1 The Assignment Operator
4.5.2 Arithmetic operators
4.5.3 Combined Assignment Operators
4.5.4 Increment/Decrement operators
Chapter 5: More Data Types in PHP
5.1 Strings
5.1.1 Commonly used String Functions in PHP
5.2 Using Strings to Represent Dates
5.2.1 The strtotime() function
5.2.2 The date() function
5.2.3 Setting the timezone
Chapter 6: Control Structures in PHP
6.1 Comparison operators
6.2 Logical Operators
6.3 Control Structures
6.3.1 If Statement
6.3.2 Ternary Operator
6.3.3 Switch Statement
6.3.4 For Loop
6.3.5 Foreach Loop
6.3.6 While Loop
6.3.7 Do-while Loop
6.4 Other Topics in Flow Control
6.4.1 Booleans
6.4.2 Break, Continue
6.4.3 Alternative Syntax
6.4.4 Displaying HTML code
Chapter 7: Functions
7.1 Defining our own Functions
7.2 Type Declaration
Chapter 8: PHP Superglobals
8.1 PHP Form Handling
8.1.1 The isset() function
8.1.2 get and $_GET
8.1.3 post and $_POST
8.1.4 Keeping The Values in The Form
8.1.5 Filtering User Input
8.1.6 Cross-Site Scripting
8.2 $_SESSION
8.3 $_COOKIE
Chapter 9: Object-Oriented Programming
9.1 What is OOP?
9.2 Writing our own class
9.3 Creating an Object
9.4 Accessing Class Members
9.5 Access Modifiers
9.6 Getter and Setter
9.7 Printing a String Representation of the Object
Chapter 10: Inheritance
10.1 Writing the Child Classes
10.2 Creating a Child Class Object
10.3 Access Modifiers Revisited
10.4 Overriding
Chapter 11: Interacting with a Database
11.1 The PDO library
11.2 Connecting to the Database
11.3 SQL Injection
11.4 Prepared Statements
11.5 Putting it all Together
Chapter 12: Managing Errors and Exceptions
12.1 Handling Exceptions
12.1.1 What is an exception?
12.1.2 try-catch-finally
12.1.3 Throwing Exceptions
12.1.4 Exception Handler
12.2 Handling Errors
12.2.1 What are errors?
12.2.2 Error Reporting Settings in PHP
12.2.3 Error Handler and Shutdown Function
12.3 Putting it All Together
Chapter 13: Project
13.1 About the Project
13.2 Acknowledgements and Requirements
13.3 Structure of the Project
13.4 Creating Database, User Account and Tables
13.5 Editing The classes Folder
13.5.1 Helper.php
13.5.2 Database.php
13.5.3 BlogReader.php
13.5.4 BlogMember.php
13.5.5 Admin.php
13.6 Editing The process Folder
13.6.1 p-index.php
13.6.2 p-admin.php
13.6.3 p-signup.php
13.6.4 p-write.php
13.6.5 p-read.php
13.6.6 messagecard.php
13.7 The includes Folder
13.8 Editing The phpproject Folder
13.8.1 UI_include.php
13.8.2 User Interface Files
13.9 Running the Code
5.3 Arrays
5.3.1 Creating an Array
5.3.2 Displaying the Content of Arrays
5.3.3 Adding Elements to Arrays
5.3.4 Deleting Elements from Arrays
5.3.5 Commonly used Array Functions in PHP
← Prev
Back
Next →
← Prev
Back
Next →