Learn PHP Online Free
• Introduction and Installation of PHP
• Check If PHP is Enabled On Your Server with This Script
• Create Your First Simple PHP Script Using the .php Extension
• Using Code Comments in Your PHP Scripts
• Where to Place PHP Code Blocks
• print Vs. echo
• Mingle HTML and CSS Into Your PHP Output
• Global Variables
• Creating Variables in PHP
• Constants and Magic Constants in PHP
• Data Types and PHP Automatic Data Typing
• Changing Data Types
• Understanding Expressions in PHP
• The Assignment Operator
• Arithmetic Operators in PHP
• Comparison Operators in PHP
• Incremental and Decremental Operators
• Logical Operators
• Concatenation Assignment Operators
• The ?(ternary) Operator
• if... else... else if Statements
• switch... case... break Statements
• while and do-while Loop
• for Loop
• continue Statement
• What Is a Function?
• Function Arguments
• Returning Values From Your Custom PHP Functions
• Function Variable Scope in PHP
• What is an Array?
• Creating Your First Simple Array in PHP
• Creating Associative Arrays in PHP
• Creating Multidimensional Arrays in PHP
• Looping or Iterating Over Array Data in PHP
• Array Functions Reference list
• File Paths and Directory Script Navigation
• Including and Requiring Files
• Communicate Between Two Servers Using PHP Includes
• Creating and Deleting Files Through Code in PHP
• Opening, Writing, Appending, Closing, and Reading Files in PHP
• Creating Directories and Removing Directories (folders)
• Opening and Dynamically Reading Directory (folder) Contents
• Delete All Files In a Directory In a Loop
• file_exists() function : Check to see if a file exists using PHP script
• copy() function : How to make a copy of a file using PHP script
• Define String :-: Define Number
• highlight_string() Function For Displaying Colored PHP Syntax
• Validate Email Addresses With PHP preg_match() and a Regex
• String Function Reference List
• Math Functions Reference List
• What Are Objects and Classes?
• Class and Object Code Structure Explained
• PHP OOP Tutorial 1: Convert MySQL Timestamp to Ago Format
• Cache Busting Files (always show updates to files on your site)
• Sniff Out User Browser and Operating System Script and Tutorial PHP
• Encoding and Decoding HTML Tags In User Gathered Input Forms
• Registering PHP Session Variables for Persistent Data and Values
• Block any Browser
• PHP Inline Email Form Processing Mechanisms Tutorial
• Mobile Device Detection and Redirection Script Using a PHP Home Page
• Detect Devices Using PHP and Serve Up Alternate CSS Style Sheets
• Dynamic PHP XML Files for Image Gallery Applications
• Discover Magic XML: MP3 Player Playlist Flash PHP Loop Files Tutorial
• Discover Magic XML File Rendering for MySQL database results in PHP
• Building a File Upload Application Using HTML Form and PHP Script
• Send PHP Email In HTML or Plain Text Format For More Design Options
• Alternative for ereg_replace() and eregi_replace() Which Are Deprecated
• PHP Search and Replace a Target Substring Inside of a String
• Dynamic Grid Output Script Using PHP + MySQL Array Data
• Pagination Script and Tutorial for PHP MySQL Programmers Paging Results
• addcslashes ( ) - Adds backslashes to escape characters in a string
• addslashes ( ) - Escape Single Quotes
• bin2hex ( ) - Returns a hexadecimal representation of a string
• chop () - Trim specified characters from the end of string
• chr ( ) - Returns the character representation of an ASCII value
• chunk_split ( ) - Chunks a string at specified lengths and inserts value
• convert_cyr_string ( ) - Converts Cyrillic character sets
• convert_uudecode ( ) - Decode a previously uuencoded string
• convert_uuencode ( ) - Uuencode a string
• count_chars ( ) - Count character occurences of each byte value
• crc32 ( ) - Returns a binary sequence representing a string
• crypt ( ) - One way hash function that can use various system algorithms
• echo ( ) [ print ( ) ] - Output a string
• explode ( ) - Returns an array of substrings from a target string
• fprintf ( ) - Write formatted strings to file stream resources
• get_html_translation ( ) - Returns array of html encoding translations
• hebrev ( ) - Reverses the display of Hebrew characters
• hebrevc ( ) - Reverses the display of Hebrew with newline conversion
• html_entity_decode ( ) - Decodes HTML encoded strings
• htmlentities ( ) - Encodes all applicable HTML characters
• htmlspecialchars ( ) - Encodes special HTML characters
• htmlspecialchars_decode ( ) - Decodes encoded special HTML characters
• implode ( ) join ( ) - Both combine array elements into a string
• lcfirst ( ) - Make the first character lowercase in a string
• levenshtein ( ) - Calculate the Levenshtein distance between two strings
• Itrim ( ) - Removes characters and whitespace from the front of a string
• md5_file ( ) - Returns an MD5 hash of target file contents
• md5 ( ) - Returns the MD5 algorithm hash of a target string
• metaphone ( ) - Returns the metrophone key of a string
• money_ format ( ) - Convert a number to a currency string
• nl_langinfo ( ) - Query language and locale information
• nl2br ( ) - Add an HTML line break where new lines(\n) occur in a string
• number_format ( ) - Format numbers into grouped thousands
• ord ( ) - Returns the ASCII representation of a character
• parse_str ( ) - Parses a URL encoded string into variables
• print ( ) - String output similar to echo()
• printf ( ) - Returns a string that is converted by a supplied format
• stripos ( ) - Find the position of the first found substring occurrence
• stripslashes ( ) - Remove backslashes from a string
• rtrim ( ) - Trims a specified substring from the end of a string
• sha1 ( ) - Returns an encrypted sha1 hash from your target string
• sha1_file ( ) - Returns the sha1 hash of a target file
• similar_text ( ) - Check the similarity of two strings
• str_ireplace ( ) - Case insensitive search and replace function
• str_repeat ( ) - Repeat a string x amount of times
• str_replace ( ) - Case sensitive search and replace function
• str_shuffle ( ) - Randomly shuffle a string
• str_split ( ) - Splits a string into a chunked array
• str_word_count ( ) - Find the number of words in a string
• strcasecmp ( ) - Case insensitive string comparison function
• strcmp ( ) - Case sensitive string comparison function
• strip_tags ( ) - Removes HTML and PHP tags from a string
• stristr ( ) - Find the first occurrence of a substring in a string
• strlen ( ) - Returns the length of a string
• strrchr ( ) - Find the last occurrence of a substring in a string
• strrev ( ) - Reverse a string to render it backwards
• strtolower ( ) - Convert all capital letters to lowercase
• strtoupper ( ) - Convert all lowercase letters to capitals
• substr_count ( ) - Count the number of times a substring is found
• substr_replace ( ) - Replace a specified portion of a string
• substr ( ) - Return a specified portion of a string
• trim ( ) - Remove whitespace(or chars) from both ends of a string
• ucfirst ( ) - Capitalize the first letter of a string
• ucwords ( ) - Capitalize the first letter of each word in a string
• wordwrap ( ) - force line break in a string at a length that you specify
• basename ( ) - Returns the base name of a file or path
• chmod ( ) - Change file or folder permission modes
• copy ( ) - Create a copy of a file
• dirname ( ) - Returns the parent folder path
• disk_free_space ( ) - Returns bytes available on a filesystem
• disk_total_space ( ) - Returns total byte size of a filesystem
• fclose ( ) - Close an open file pointer
• fgetc ( ) - Return a single character from an open file
• fgets ( ) - Returns a line from a target file handler
• file_exists ( ) - Check to see if a file exists
• file_get_contents ( ) - Read entire file contents and place in a string
• file_put_contents ( ) - Write string data into a file
• file ( ) - Places file contents into an array
• fileatime ( ) - Returns the time and date a file has been accessed last
• filectime ( ) filemtime ( ) - Check the change time of a file
• fileperms ( ) - Check the permission settings a file has
• filesize ( ) - Returns the byte size of a file
• filetype ( ) - Find out file type
• fopen ( ) - Opens a file or a URL
• fread ( ) - Reads and returns file data up to a specified byte length
• fwrite ( ) - Write to a file
• is_dir ( ) - Evaluate to see if a target file is a directory
• mkdir ( ) - Create a new directory folder or series of folders
• move_uploaded_file ( ) - Move an uploaded file
• rename ( ) - Rename a file or directory folder
• rmdir ( ) - Remove or delete a directory folder
• touch ( ) - Create file or change file access time
• unlink ( ) - Delete a file from the server
• array_change_key_case ( ) - Change array keys to uppercase or lowercase
• array_chunk ( ) - Split an array into specified size chunks
• array_count_values ( ) - Count all of the matching values in an array
• array_combine ( ) - Create a new associative array from two arrays
• array_diff_assoc ( ) - Find unique key value pairs when comparing arrays
• array_diff_key ( ) - Find unique keys when comparing arrays
• array_diff ( ) - Compare arrays for unique value differences
• array_fill_keys ( ) - Fill an array with values using specified keys
• array_fill ( ) - Create an array and fill it with a specified value
• array_filter ( ) - Filter array elements using a callback function
• array_flip ( ) - Swap array keys with their values
• array_intersect_assoc ( ) - Intersect arrays by comparing full elements
• array_intersect_key ( ) - Intersect arrays by comparing keys only
• array_intersect ( ) - Intersect arrays by comparing values only
• array_key_exists ( ) - Check to see if a key exists as an index in an array
• array_keys ( ) - Use keys in a target array to form the values in a new array
• array_map ( ) - Apply a callback function to array elements
• array_merge_recursive ( ) - Recursively merge multiple arrays
• array_merge ( ) - Merge multiple arrays
• array_multisort ( ) - Sort multiple arrays according to the sort order of the first
• array_pad ( ) - Pad an array to a specified length using a specified value
• array_pop ( ) - Pop the last element off the end of an array
• array_product ( ) - Find the product of all values in an array
• array_rand ( ) - Select one or more array items at random
• array_reduce ( ) - Reduce an array to a single value using a callback function
• array_reverse ( ) - Reverse an array
• array_search ( ) - Search an array for a value and return the key where it is found
• array_shift ( ) - Shift the first element off the beginning of an array
• array_slice - ( ) Cut a specified slice of elements from an array
• array_splice ( ) - Remove and replace specified array elements
• array_sum ( ) - Calculate the sum of all numeric values within an array
• array_unique ( ) - Remove any duplicate values from an array
• array_unshift ( ) - Add elements to the beginning of an array
• array_values ( ) - Return a new array from the values of a target array
• array_walk ( ) - Walk all array elements through a callback function
• arsort ( ) - Sort array elements in reverse or descending order
• asort ( ) - Sort an array into ascending order according to values
• compact ( ) - Create an array from a list of variables
• count ( ) - Count the number of elements in an array
• current ( ) - Return the value of the current element in an array
• each ( ) - Get current array element and advance the internal pointer
• end ( ) - Get the value of the last element in an array
• extract ( ) - Create local variables from elements in an associative array
• in_array ( ) - Look in an array for a value match
• key ( ) - Returns the key where the internal pointer of an array is
• krsort ( ) - Sort an array by its keys in reverse order
• ksort ( ) - Sort an array by its keys
• list ( ) - List values from array elements placing them into variables
• next ( ) - Move the internal pointer of an array forward by one
• prev ( ) - Move the internal pointer of an array backward by one
• range ( ) - Create a new array using a specified range
• reset ( ) - Reset the internal pointer of an array to the first element
• rsort ( ) - Sort an array in reverse or descending order
• shuffle ( ) - Randomly shuffle the order of an array
• sort ( ) - Sort array by values into ascending order from lowest to highest
• abs ( ) - Find the absolute value of a number
• floor ( ) - Round fraction or decimal numbers down
• getrandmax ( ) - Get the maximum random value
• max ( ) - Find the maximum value in a series of numbers
• base_convert ( ) - Convert a number or string between various bases
• bindec ( ) - Convert binary string to number
• ceil ( ) - Round decimal numbers up
• Check If PHP is Enabled On Your Server with This Script
• Create Your First Simple PHP Script Using the .php Extension
• Using Code Comments in Your PHP Scripts
• Where to Place PHP Code Blocks
• print Vs. echo
• Mingle HTML and CSS Into Your PHP Output
• Global Variables
• Creating Variables in PHP
• Constants and Magic Constants in PHP
• Data Types and PHP Automatic Data Typing
• Changing Data Types
• Understanding Expressions in PHP
• The Assignment Operator
• Arithmetic Operators in PHP
• Comparison Operators in PHP
• Incremental and Decremental Operators
• Logical Operators
• Concatenation Assignment Operators
• The ?(ternary) Operator
• if... else... else if Statements
• switch... case... break Statements
• while and do-while Loop
• for Loop
• continue Statement
• What Is a Function?
• Function Arguments
• Returning Values From Your Custom PHP Functions
• Function Variable Scope in PHP
• What is an Array?
• Creating Your First Simple Array in PHP
• Creating Associative Arrays in PHP
• Creating Multidimensional Arrays in PHP
• Looping or Iterating Over Array Data in PHP
• Array Functions Reference list
• File Paths and Directory Script Navigation
• Including and Requiring Files
• Communicate Between Two Servers Using PHP Includes
• Creating and Deleting Files Through Code in PHP
• Opening, Writing, Appending, Closing, and Reading Files in PHP
• Creating Directories and Removing Directories (folders)
• Opening and Dynamically Reading Directory (folder) Contents
• Delete All Files In a Directory In a Loop
• file_exists() function : Check to see if a file exists using PHP script
• copy() function : How to make a copy of a file using PHP script
• Define String :-: Define Number
• highlight_string() Function For Displaying Colored PHP Syntax
• Validate Email Addresses With PHP preg_match() and a Regex
• String Function Reference List
• Math Functions Reference List
• What Are Objects and Classes?
• Class and Object Code Structure Explained
• PHP OOP Tutorial 1: Convert MySQL Timestamp to Ago Format
• Cache Busting Files (always show updates to files on your site)
• Sniff Out User Browser and Operating System Script and Tutorial PHP
• Encoding and Decoding HTML Tags In User Gathered Input Forms
• Registering PHP Session Variables for Persistent Data and Values
• Block any Browser
• PHP Inline Email Form Processing Mechanisms Tutorial
• Mobile Device Detection and Redirection Script Using a PHP Home Page
• Detect Devices Using PHP and Serve Up Alternate CSS Style Sheets
• Dynamic PHP XML Files for Image Gallery Applications
• Discover Magic XML: MP3 Player Playlist Flash PHP Loop Files Tutorial
• Discover Magic XML File Rendering for MySQL database results in PHP
• Building a File Upload Application Using HTML Form and PHP Script
• Send PHP Email In HTML or Plain Text Format For More Design Options
• Alternative for ereg_replace() and eregi_replace() Which Are Deprecated
• PHP Search and Replace a Target Substring Inside of a String
• Dynamic Grid Output Script Using PHP + MySQL Array Data
• Pagination Script and Tutorial for PHP MySQL Programmers Paging Results
• addcslashes ( ) - Adds backslashes to escape characters in a string
• addslashes ( ) - Escape Single Quotes
• bin2hex ( ) - Returns a hexadecimal representation of a string
• chop () - Trim specified characters from the end of string
• chr ( ) - Returns the character representation of an ASCII value
• chunk_split ( ) - Chunks a string at specified lengths and inserts value
• convert_cyr_string ( ) - Converts Cyrillic character sets
• convert_uudecode ( ) - Decode a previously uuencoded string
• convert_uuencode ( ) - Uuencode a string
• count_chars ( ) - Count character occurences of each byte value
• crc32 ( ) - Returns a binary sequence representing a string
• crypt ( ) - One way hash function that can use various system algorithms
• echo ( ) [ print ( ) ] - Output a string
• explode ( ) - Returns an array of substrings from a target string
• fprintf ( ) - Write formatted strings to file stream resources
• get_html_translation ( ) - Returns array of html encoding translations
• hebrev ( ) - Reverses the display of Hebrew characters
• hebrevc ( ) - Reverses the display of Hebrew with newline conversion
• html_entity_decode ( ) - Decodes HTML encoded strings
• htmlentities ( ) - Encodes all applicable HTML characters
• htmlspecialchars ( ) - Encodes special HTML characters
• htmlspecialchars_decode ( ) - Decodes encoded special HTML characters
• implode ( ) join ( ) - Both combine array elements into a string
• lcfirst ( ) - Make the first character lowercase in a string
• levenshtein ( ) - Calculate the Levenshtein distance between two strings
• Itrim ( ) - Removes characters and whitespace from the front of a string
• md5_file ( ) - Returns an MD5 hash of target file contents
• md5 ( ) - Returns the MD5 algorithm hash of a target string
• metaphone ( ) - Returns the metrophone key of a string
• money_ format ( ) - Convert a number to a currency string
• nl_langinfo ( ) - Query language and locale information
• nl2br ( ) - Add an HTML line break where new lines(\n) occur in a string
• number_format ( ) - Format numbers into grouped thousands
• ord ( ) - Returns the ASCII representation of a character
• parse_str ( ) - Parses a URL encoded string into variables
• print ( ) - String output similar to echo()
• printf ( ) - Returns a string that is converted by a supplied format
• stripos ( ) - Find the position of the first found substring occurrence
• stripslashes ( ) - Remove backslashes from a string
• rtrim ( ) - Trims a specified substring from the end of a string
• sha1 ( ) - Returns an encrypted sha1 hash from your target string
• sha1_file ( ) - Returns the sha1 hash of a target file
• similar_text ( ) - Check the similarity of two strings
• str_ireplace ( ) - Case insensitive search and replace function
• str_repeat ( ) - Repeat a string x amount of times
• str_replace ( ) - Case sensitive search and replace function
• str_shuffle ( ) - Randomly shuffle a string
• str_split ( ) - Splits a string into a chunked array
• str_word_count ( ) - Find the number of words in a string
• strcasecmp ( ) - Case insensitive string comparison function
• strcmp ( ) - Case sensitive string comparison function
• strip_tags ( ) - Removes HTML and PHP tags from a string
• stristr ( ) - Find the first occurrence of a substring in a string
• strlen ( ) - Returns the length of a string
• strrchr ( ) - Find the last occurrence of a substring in a string
• strrev ( ) - Reverse a string to render it backwards
• strtolower ( ) - Convert all capital letters to lowercase
• strtoupper ( ) - Convert all lowercase letters to capitals
• substr_count ( ) - Count the number of times a substring is found
• substr_replace ( ) - Replace a specified portion of a string
• substr ( ) - Return a specified portion of a string
• trim ( ) - Remove whitespace(or chars) from both ends of a string
• ucfirst ( ) - Capitalize the first letter of a string
• ucwords ( ) - Capitalize the first letter of each word in a string
• wordwrap ( ) - force line break in a string at a length that you specify
• basename ( ) - Returns the base name of a file or path
• chmod ( ) - Change file or folder permission modes
• copy ( ) - Create a copy of a file
• dirname ( ) - Returns the parent folder path
• disk_free_space ( ) - Returns bytes available on a filesystem
• disk_total_space ( ) - Returns total byte size of a filesystem
• fclose ( ) - Close an open file pointer
• fgetc ( ) - Return a single character from an open file
• fgets ( ) - Returns a line from a target file handler
• file_exists ( ) - Check to see if a file exists
• file_get_contents ( ) - Read entire file contents and place in a string
• file_put_contents ( ) - Write string data into a file
• file ( ) - Places file contents into an array
• fileatime ( ) - Returns the time and date a file has been accessed last
• filectime ( ) filemtime ( ) - Check the change time of a file
• fileperms ( ) - Check the permission settings a file has
• filesize ( ) - Returns the byte size of a file
• filetype ( ) - Find out file type
• fopen ( ) - Opens a file or a URL
• fread ( ) - Reads and returns file data up to a specified byte length
• fwrite ( ) - Write to a file
• is_dir ( ) - Evaluate to see if a target file is a directory
• mkdir ( ) - Create a new directory folder or series of folders
• move_uploaded_file ( ) - Move an uploaded file
• rename ( ) - Rename a file or directory folder
• rmdir ( ) - Remove or delete a directory folder
• touch ( ) - Create file or change file access time
• unlink ( ) - Delete a file from the server
• array_change_key_case ( ) - Change array keys to uppercase or lowercase
• array_chunk ( ) - Split an array into specified size chunks
• array_count_values ( ) - Count all of the matching values in an array
• array_combine ( ) - Create a new associative array from two arrays
• array_diff_assoc ( ) - Find unique key value pairs when comparing arrays
• array_diff_key ( ) - Find unique keys when comparing arrays
• array_diff ( ) - Compare arrays for unique value differences
• array_fill_keys ( ) - Fill an array with values using specified keys
• array_fill ( ) - Create an array and fill it with a specified value
• array_filter ( ) - Filter array elements using a callback function
• array_flip ( ) - Swap array keys with their values
• array_intersect_assoc ( ) - Intersect arrays by comparing full elements
• array_intersect_key ( ) - Intersect arrays by comparing keys only
• array_intersect ( ) - Intersect arrays by comparing values only
• array_key_exists ( ) - Check to see if a key exists as an index in an array
• array_keys ( ) - Use keys in a target array to form the values in a new array
• array_map ( ) - Apply a callback function to array elements
• array_merge_recursive ( ) - Recursively merge multiple arrays
• array_merge ( ) - Merge multiple arrays
• array_multisort ( ) - Sort multiple arrays according to the sort order of the first
• array_pad ( ) - Pad an array to a specified length using a specified value
• array_pop ( ) - Pop the last element off the end of an array
• array_product ( ) - Find the product of all values in an array
• array_rand ( ) - Select one or more array items at random
• array_reduce ( ) - Reduce an array to a single value using a callback function
• array_reverse ( ) - Reverse an array
• array_search ( ) - Search an array for a value and return the key where it is found
• array_shift ( ) - Shift the first element off the beginning of an array
• array_slice - ( ) Cut a specified slice of elements from an array
• array_splice ( ) - Remove and replace specified array elements
• array_sum ( ) - Calculate the sum of all numeric values within an array
• array_unique ( ) - Remove any duplicate values from an array
• array_unshift ( ) - Add elements to the beginning of an array
• array_values ( ) - Return a new array from the values of a target array
• array_walk ( ) - Walk all array elements through a callback function
• arsort ( ) - Sort array elements in reverse or descending order
• asort ( ) - Sort an array into ascending order according to values
• compact ( ) - Create an array from a list of variables
• count ( ) - Count the number of elements in an array
• current ( ) - Return the value of the current element in an array
• each ( ) - Get current array element and advance the internal pointer
• end ( ) - Get the value of the last element in an array
• extract ( ) - Create local variables from elements in an associative array
• in_array ( ) - Look in an array for a value match
• key ( ) - Returns the key where the internal pointer of an array is
• krsort ( ) - Sort an array by its keys in reverse order
• ksort ( ) - Sort an array by its keys
• list ( ) - List values from array elements placing them into variables
• next ( ) - Move the internal pointer of an array forward by one
• prev ( ) - Move the internal pointer of an array backward by one
• range ( ) - Create a new array using a specified range
• reset ( ) - Reset the internal pointer of an array to the first element
• rsort ( ) - Sort an array in reverse or descending order
• shuffle ( ) - Randomly shuffle the order of an array
• sort ( ) - Sort array by values into ascending order from lowest to highest
• abs ( ) - Find the absolute value of a number
• floor ( ) - Round fraction or decimal numbers down
• getrandmax ( ) - Get the maximum random value
• max ( ) - Find the maximum value in a series of numbers
• base_convert ( ) - Convert a number or string between various bases
• bindec ( ) - Convert binary string to number
• ceil ( ) - Round decimal numbers up