Array Operations in PHP
Let’s take a look at some of the most common built-in functions that we can use when working w...
Type conversion in PHP
Getting the type of a variable To get the type of a variable, use the gettype() function, which retu...
Checking for Variable Existence in PHP
If the variable is declared, but it was not initially assigned any value (in other words, it is not ...
Constants in PHP
Constants, like variables, store a certain value, only unlike variables, the value of constants can ...
Variable scope In PHP
When using variables and functions, consider the scope of variables. The scope defines the scope of ...
PHP Arrays
Earlier we looked at how variables can store a single value, such as a single number or a single str...
PHP Loops
PHP, like other programming languages, uses loops to perform repetitive actions. PHP has the followi...
switch and Case match constructs in php
Switch..case construction The construct switch..caseis an alternative to using the construct if..els...
if..else construct and ternary operation in php
Conditional constructions allow you to direct the work of the program, depending on the condition, a...
Operations in PHP
In PHP, we can use various operators: arithmetic, logical, etc. Let’s look at each type of ope...