Code & Blog

Array In PHP: In Brief

#ARRAY INTRODUCTION #ARRAY MANIPULATION change or modify a value of an existing array #array_pop(): Array Pop removes the last item from an array and returns it. #array_shift(): Array Shift removes the first

Read More »

Variable Scope In PHP: In Brief

Variable scope is a boundary for a variable within which it can be visible or accessed from code. There are only two scopes available in PHP namely local and global scopes. Local

Read More »

Number formatting in JavaScript

There are many different ways of printing an integer with a comma as a thousand separators in JavaScript. One of the simplest ways is to use String.prototype.replace() function with the following arguments:

Read More »

Operator Precedence In PHP

The precedence of an operator specifies how “tightly” it binds two expressions together. For example, in the expression 1 + 5 * 3, the answer is 16 and not 18 because the

Read More »

Data Types Available in PHP

8 data types available Integer Float/Double Boolean String Array Object Null Resource   Integers: Integers are whole numbers, without a decimal point (…, -2, -1, 0, 1, 2, …) Floating Point Numbers

Read More »
Blog Categories

Most Popular