PHP Essentials
- About this Book
- The History of PHP
- An Overview of PHP
- Creating a Simple PHP Script
- Commenting PHP Code
- An Introduction to PHP Variables
- Understanding PHP Variable Types
- PHP Constants
- PHP Operators
- PHP Flow Control and Looping
- PHP Functions
- PHP Arrays
- How to Create a PHP Array
- Accessing Elements in a PHP Array
- Creating an Associative Array
- Accessing Elements of an Associative Array
- Accessing Elements in a Multidimensional PHP Array
- Using PHP Array Pointers
- Changing, Adding and Removing PHP Array Elements
- Looping through PHP Array Elements
- Replacing Sections of an Array
- Sorting a PHP Array
- Sorting Associative Arrays
- Getting Information About PHP Arrays & other Array Functions
- Summary
- Working with Strings and Text in PHP
- Changing the Case of a PHP String
- Converting to and from ASCII Values
- Printing Formatted Strings in PHP
- PHP printf formatting specifiers
- Finding the Length of a PHP String
- Converting a String into a PHP Array
- Removing Leading and Trailing Whitespace from a PHP String
- Comparing Strings in PHP
- String Comparison Functions Return Value
- Accessing and Modifiying Characters in String
- Searching for Characters and Substrings in a PHP String
- Extracting and Replacing Substrings in PHP
- Replacing All Instances of a Word in a PHP String
- PHP, Filesystems and File I/O
- Working with Directories in PHP
- An Overview of HTML Forms
- PHP and HTML Forms
- PHP and Cookies - Creating, Reading and Writing
- Understanding PHP Sessions
- PHP Object Oriented Programming
- What is an Object?
- What is a Class?
- How is an Object Created from a Class?
- What is sub-classing?
- Defining a PHP Class
- PHP Class Constructors and Destructors
- Creating Members in a PHP Class
- Defining and Calling Methods
- Subclassing in PHP
- PHP Object Serialization
- Getting Information about a PHP Object
- Using PHP with MySQL
- Creating a MySQL User Account
- Creating and Select MySQL Database
- Creating a MySQL Database Table
- Inserting Data into a MySQL Database Table
- Connecting wiht PHP to a MySQL Server
- Selecting Records from a MySQL Database Using PHP
- Adding Records to MySQL Database using PHP
- Modifying and Deleting MySQL Records using PHP
- Using PHP to get Information about a MySQL Database
- Summary
- PHP and SQLite