What is an exception? An exception indicates that there is a problem while running an application. Here’s a quote from Wikipedia on exception handling: Exception handling is a programming technique that allows a programmer to control errors that occur during the execution of a computer program.(wikipedia.org) So, how do we handle exceptions in PHP? In […]
read morePHP is one of the languages often used to start programming, I will begin by explaining what a variable is. Then, we’ll look at the types of variables in PHP So, what is a variable? A variable is actually a reserved space in memory that we use, and its value can change, which is why […]
read moreIn this section, we will explore all the data types in PHP. Understanding these data types is fundamental to working effectively with PHP, as each type serves a different purpose and has unique characteristics. From basic types like integers and strings to more complex structures like arrays and objects, we’ll cover them all and provide […]
read moreIn this article, the different elements that are part of PHP syntax will be shown and explained. First, you need to create a .php file
read morePHP acronym stands for “Hypertext Preprocessor” (originally “Personal Home Page”). PHP is generally used as server-side programming language that was born in 1995, and it could be said that, along with JavaScript, it is the most popular language in web development. Beside of this it can be used as a general propose language. It is […]
read moreIn PHP, errors are handled somewhat differently compared to other languages. PHP will attempt to continue execution despite encountering errors until a fatal error occurs. Of course, it will provide notifications of these errors.
read moreCSP stands for Content Security Policy. It is an additional layer of security. In this case, we will see how to apply CSP in PHP.
read morePHP provides various control structures, which are fundamental tools for directing the execution flow of your program. They allow you to make decisions based on certain conditions, repeat tasks, and organize your code effectively.
read moreIn the following article, we will see an introduction to object-oriented programming in PHP.
read moreGenerally, in PHP, for and foreach are used to traverse an array. Similar to while, for and foreach execute code while certain conditions are met. for The for statement has 3 expressions, the first one is the initial value of the iteration, or the value where the loop starts; the second one is the condition, […]
read more