A look into PHP implicit casting

PHP Implicit Casting

PHP implicit casting is very common. But before we see what it mean, let’s see why implicit casting happens. Again, PHP is supper-friendly. Also, it is a loosely typed language. In other words, PHP allows us to declare a variable and simply use it. And, PHP determines the data type of the variable automatically. Note: […]

Single or Double Quote String literals in PHP

String literals in PHP can be either double-quoted or single-quoted. Both work fine. However, the single quote string literal comes with few limitations. Limitations of single quote string literals in PHP In our example above, the second variable $name2, is a single quote string literal. Hence, its main limitations are:- Single quote string literals don’t […]

Next level PHP with Composite Data Types

PHP Composite Data Types. Aray

In my last blog post on PHP data tapes, I discussed the four scalar PHP data types. Today, we will continue with composite data types. To recap, the scalar data types are good for variables representing a singular item, like price. But most of the time we are interested in a price of more than […]

Your subscription could not be saved. Please try again.
Your subscription has been successful.

Learn Modern PHP

Subscribe to learn modern PHP in the most simple way.