Basic concept:
- Basic PHP syntax example
- PHP constants definition example
- PHP variables definition example
- Basic example of PHP echo and print statements
Data types:
- Example of a Boolean data type in PHP
- Example of a PHP conversion to an integer
- Example of a floating point data type
- Simple example of an array data type
Operators:
- Example of assignment operators
- Example with bitwise operators
- Example of error operator in PHP
- Example of execution operator in PHP
- Example of increment and decrement operators in PHP
- Example of logical operators in PHP
- Example of string operators in PHP
- Example of array operators in PHP
- Example of type operator (instanceof) in PHP
Conditional statements:
- Example of IF - ELSE statement
- Example with a SWITCH - CASE - DEFAULT statement with BREAK
- Example with a WHILE statement
- Example with a DO - WHILE statement
- Example with a FOR statement
- Example with a FOREACH statement
- Example with a BREAK and a CONTINUE statements
Control structures:
- Basic example with a DECLARE construct
- Example of a DECLARE construct with TICK directive set
- Example with RETURN statement in a function
- Example with REQUIRE_ONCE statement
- Examples with INCLUDE and INCLUDE_ONCE statements
- Example with GOTO and LABEL statements
Strings:
- Example with ucfirst() string converting function
- Example with number_format() number converting function
- Multiple examples of trim() function usage
- Example with substr_count() functions
- Example with strip_tags() functions
Arrays:
- Example of a multidimensional array
- Example with is_array() array function
- Example with count() array function
- Example with unset() value of an array function
- Example of simple index searching loop through array
- Example of associative loop through array
- Examples of array sorting
- Example with explode() array function
- Example with implode() array function
Functions:
- Example of PHP function arguments
- Example of PHP function return values
- Example of an anonymous function as a closure to a variable
- Example showing how to inherit variables from parent scope
Classes and objects:
- Example of creating and using a class constant
- Examples with class constructors and constructors extends
- Examples of object and classes inheritance
- Example with extending class overriding a method
- Example with object serialization
Regular expressions:
- Basic example with preg_match() function
- Example showing a word search with Regex
- Example with preg_replace() function
- Example with preg_split() function
- Example with ereg() function and date format conversion
- Example with reg_replace() function
- Example with split() function
Date and time:
Forms:
Mail handling:
- Simple example with mail()
- Simple example with mail() and additional headers
- Example of sending an HTML email with a memo
File handling:
- Basic example with readfile() function
- Basic example with fopen(), fread() and fclose() functions
- Example with uploading files server script
- Example with checking if a file exist
- Example of checking a file's size
Image handling:
- Example of image resizing
- Example of using exif_read_data() function
- Example of creating a JPG (JPEG) image with PHP
Audio formats:
Databases:
- Example how to establish connection with MySQLi database server
- Example how to create MySQLi database with PHP
- Example how to create MySQLi table with PHP
- Example how to insert, update and delete records in MySQLi with PHP
XML manipulation:
Advanced PHP:
- Example of PHP session
- Example of setting PHP cookie
- Example of deleting PHP cookie
- Example of checking PHP cookie if enabled
- Example of error handling for missing files in PHP
- Example of detecting undefined variable
- Example of $_POST form submission with letter, number, email and URL filters
- Example of working with BZIP in PHP
- Example of working with ZIP in PHP
Comments
No comments have been made yet.
Please login to leave a comment. Login now