Sometimes when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do this. In this tutorial we will look at two structures: if...else and switch statements.
Arrays are a large collection of key/value pairs can stores multible variables in a single variable. Arrays are an ordered map which each key could be mapped to a value.
array_fill() fills an array with num entries of the value of the value parameter, keys starting at the start_index parameter. Note that num must be a number greater than zero, or PHP will throw a warning. .
Working with sessions in PHP is very basic. You can pass values to session as key/value pairs. To store and receive data from sessions are very easy to use.
Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string separator. If limit is set, the returned array will contain a maximum of limit elements with the last element containing the rest of string.
A collection of 19 tips on manipulating PHP strings. Clear answers are provided with tutorial exercises on string functions including strlen, trim, substr, chop, strpos, strcmp, split, etc
A collection of 14 tips on PHP string literals, operations and conversaion. Clear explanations and tutorial exercises are provided on single-quoted strings, double-quoted strings, string elements, concatenation, converting values to strings, converting strings to values: What Are the Special Characters You Need to Escape in Quoted Stings?
Can You Specify the "new line" Character in Single-Quoted Strings?
How Many Escape Sequences Are Recognized in Quoted Strings?
How Many Escape Sequences Are Recognized in Double-Quoted Strings?
How To Include Variables in Double-Quoted Strings?
How Many Ways to Include Variables in Double-Quoted Strings?
How Many Ways to Include Array Elements in Double-Quoted Strings?
How To Access a Specific Character in a String?
How To Assigning a New Character in a String?
How To Concatenate Two Strings Together?
......
In this tutorial you will learn about PHP - Introduction to PHP, What you should already know? What’s PHP? What’s the difference between PHP and HTML? When to use PHP? What makes PHP a choice among the other scripting languages?