Function | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
The define() function defines a constant.
Constants are much like variables, except for the following differences: 1) A constant's value cannot be changed after it is set 2) Constant names do not need a leading dollar sign ($) 3) Constants can be accessed regardless of scope 4) Constant values can only be strings and numbers |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
If return value is false than connection is not successfull |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The require_once keyword is used to embed PHP code from another file. If the file is not found, a fatal error is thrown and the program stops. If the file was already included previously, this statement will not include it again. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The empty() function checks whether a variable is empty or not.
This function returns false if the variable exists and is not empty, otherwise it returns true. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The trim() function removes whitespace and other predefined characters from both sides of a string. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
PHP $_POST is a PHP super global variable which is used to collect form data after submitting an HTML form with method="post". $_POST is also widely used to pass variables. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Click for more details | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The isset() function checks whether a variable is set, which means that it has to be declared and is not NULL. This function returns true if the variable exists and is not NULL, otherwise it returns false. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|