Showing posts in PHP
post image

No attributes should be defined with type in PHP

2023-08-16 PHP

In PHP we have the possibility of adding type to the attributes of a class. This is a great feature of PHP and can be used from PHP 7.4. However, it is important to know how to use it to avoid some errors that may come with this feature.Defining an attribu...

by Darío Rivera


post image

Introduction to the PHP programming language

2023-06-23 PHP

PHP (Hypertext Preprocessor) is a high-level imperative scripting language, object-oriented (since PHP 5), and general-purpose developed in the programming language C/C++. PHP is generally used for the development of dynamic websites, CLI (command line i...

by Darío Rivera


post image

Variable Declaration in PHP

2023-06-23 PHP

Variables in PHP are declared by preceding the variable name with the dollar sign ( $ ). Next, we will see some rules to keep in mind for variable naming. Naming Rules Case-Sensitivity: All variable names are case-sensitive, which means that the variable $...

by Darío Rivera


post image

Conversion of Data Types in PHP

2023-06-23 PHP

Remember that PHP is a weakly typed language, which means that it does not control the types of variables it declares. This way it is possible to use variables of any type in the same scenario. The type of a variable in PHP when it is not declared is deter...

by Darío Rivera