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 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
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
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
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
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
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
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 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,
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