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

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

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