Archive for category: Tutorial

                                                        

Modules and Namespaces in JavaScript

modules and namespaces in javascript

For most of us, modules and namespaces in JavaScript were kinds of tricky. We import a bundle and it does the magic. How and why is abstracted away. And before modules, ideas of IIFE, closure, etc made this arena unreachable for junior JavaScript developers. Besides the easiness it brings, modularity has a number of advantages. […]

                     

Most common PHP string manipulation questions

Learn PHP string by answering the most common string manipulation questions

These are the most common PHP string manipulation questions that I had come around when I was getting started with PHP. Most of these easy concepts still confuse students. But let’s take few minutes and take them one by one. How do I combine two strings together? The first common PHP string manipulation question is […]

                     

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: […]

                     

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 […]