Arrays in PHP

Arrays are an essential concept in PHP. The array is an ordered list of defined values. For example, a list of numbers or a list of text (strings). We can...

11 min read

PHP for loop

Similar to the while loop , the for loop can be used to execute statements as long as a particular condition is met. The syntax of the for loop is...

3 min read

PHP while loop

In some cases, it is necessary to execute a statement until a specified result occurs. This is also used, for example, to output the contents of databases (e.g., MySQL) or...

5 min read

Simple PHP Exercises

Here are three simple exercises to deepen what you have learned. First, we build a small, password-protected site. Then an example of how to check if form fields have been...

9 min read

PHP Logical Operators

It's often not enough to check only one condition in an if-statement. For example, if you do a password query, you want to know if the username and password are...

5 min read

PHP Comparison Operators

Comparison operators in PHP allow you to compare values ​​and variables. For example, they can be used to check whether a variable has a specific value, for example. Comparison of...

4 min read

$_POST or $_GET Method

If you want to transfer values ​​in PHP from one page to the next one, you often have to resort to the two special variables method $_GET and $_POST. For...

5 min read

Calculation with Variables

In addition to texts or string, as shown in the first part, you can also store numbers in variables and calculate the result, for example, add, subtract or multiply them....

3 min read

PHP Variables

A fundamental concept of any programming language is variables. Variables can contain values ​​of any kind, for example, simple lines or texts, but also more complex structures such as lists...

4 min read