Comparison Operators in PHP

phpclassroom007

With the help of comparison operators, we can compare values ​​according to various criteria. Comparison of almost all operators is a boolean true / false: $ a == $ b True if $

Concatenation Operator in PHP

phpclassroom007

Concatenation is the concatenation of multiple values ​​into one line. The concatenation operator in PHP is the dot: Result in the browser: Concatenation will always result in a string, even if you are

Increment and Decrement in PHP

phpclassroom007

Despite their scary names, these two operators simply increment or decrement the value of a variable by one: There are 4 options for using these operators: ++ $ x (pre-increment) – first increases

Assignment Operator in PHP

phpclassroom007

With the assignment operator = we store the value in a variable: If you need to combine the assignment operator with arithmetic operators, you can use: Multiple assignment of values One value can be

Constants in PHP

phpclassroom007

What is a constant By their principle of operation, constants are similar to variables, but they have one important difference – you can write any value to a constant only once, and

Strings and Quotes in PHP

phpclassroom007

Quotes in PHP PHP strings are enclosed in single or double quotes. One of the main differences is that you can substitute the value of another variable in double quotes: How PHP determines

Typecasting in PHP

phpclassroom007

What is dynamic typing PHP is a dynamically typed language. This means that the type of the variable can be changed at any time the script is running. In some other languages, typing is

Data Types in PHP

phpclassroom007

What are data types Every variable and every value in PHP has its own data type: A data type is a characteristic of data that determines which values ​​can contain data, what

Arithmetic Operators in PHP

phpclassroom007

Arithmetic operators in PHP allow you to perform simple operations familiar to us from school: Result in the browser: Operator precedence is the same as in mathematics – first multiplication / division,

Variables in PHP

phpclassroom007

What is a variable A variable is a temporary storage, a container in which you can store any value. For example, if we have an HTML page on which it is necessary