The htmlentities() function converts characters to HTML entities. ...
The implode() function returns a string from the elements of an array. ...
The explode() function breaks a string into an array. ...
The htmlspecialchars() function converts some predefined characters to HTML entities. ...
The ucwords() function converts the first character of each word in a string to uppercase. ...
The strtoupper() function converts a string to uppercase. ...
The strtolower() function converts a string to lowercase. ...
The addcslashes() function returns a string with backslashes in front of the specified characters. ...
The SELECT statement is used to select data from one or more tables. A prepared statement is a feature used to execute the same (or similar) SQL state ...
A prepared statement is a feature used to execute the same (or similar) SQL statements repeatedly with high efficiency. ...
PHP will work with virtually all database software, including Oracle and Sybase but most commonly used is freely available MySQL database. ...
The foreach statement is used to loop through arrays. For each pass the value of the current array element is assigned to $value and the array pointer ...
The for statement is used when you know how many times you want to execute a statement or a block of statements. ...
The associative arrays are very similar to numeric arrays in term of functionality but they are different in terms of their index. ...
You'll often want to work with dates and times when developing websites. For example, you might need to show the last modified date on a post or menti ...
A regular expression is a sequence of characters that forms a search pattern. When you search for data in a text, you can use this search pattern to d ...
PHP functions are similar to other programming languages. A function is a piece of code which takes one more input in the form of parameter and does s ...
An array is a data structure that stores one or more similar type of values in a single value. For example if you want to store 100 numbers then inste ...
The “switch” performs in various cases i.e., it has various cases to which it matches the condition and appropriately executes a particular case block ...
Very often when you write code, you want to perform different actions for different conditions. You can use conditional statements in your code to do ...
The most basic type of number in PHP is the integer. As you might already know, integers are numbers without any decimal part. ...
A string is series of characters, where a character is the same as a byte. This means that PHP only supports a 256-character set, and hence does not o ...
Variables are used to store data, like string of text, numbers, etc. Variable values can change over the course of a script. ...
A comment in PHP code is a line that is not executed as a part of the program. Its only purpose is to be read by someone who is looking at the code. ...
In PHP, keywords (e.g. if, else, while, echo, etc.), classes, functions, and user-defined functions are not case-sensitive. ...
The echo statement can be used with or without parentheses: echo or echo(). ...