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

PHP Comments

Comments in PHP are not executed by the PHP interpreter but skipped automatically. They serve as programmers to make your code easier to understand. You can, as the name says,...

2 min read

Getting Started With PHP

How to check if PHP is installed on a server computer or not?, you need a PHP file (phpinfo.php) with the following content: Sorry, we have disabled php info for...

3 min read