PHP Operators
Operators are used to perform operations on variables and values.
In PHP there are different type of Operators are used:- Arithmetic Operators
- Increment/Decrement Operators
- Assignment Operators
- Comparison Operators
- Logical Operators
- String Operators
- Array Operators
Single and double quotes valid in PHP but there is difference in single quoted and double quoted strings.
Single quoted list all the character without any change, but double quote produce different sting output
E.g.
<?PHP
Echo 'This is \"a\" quoted character';
Echo "<br/>";
Echo "This is \"a\" quoted character";
?>
Output:
This is \"a\" quoted character
This is "a" quoted character
UNIT-304
Elementary Server Side Scripting through PHP
- Boolean Datatype- This datatype has only two possible values True and False.
Elementary Server Side Scripting through PHP