Multiple Constructors in PHP

In most object-oriented programming languages such as Java, C++, and C#, you can define multiple constructors each having different signatures. The class calls the correct constructor based on the number of parameters, and data type of input parameters. In PHP5, however, you can have one and only one constructor. Constructor in PHP is defined with a reserved keyword, __construct(). If the __construct function doesn’t exist, PHP5 will search for the old-style constructor function by the name of the class.

Javascript Overview

JavaScript is an object-oriented scripting language designed to be embedded in HTML pages for added interactivity and to offer intelligence to web pages. JavaScript provides a set of objects (Array, Date, and Math), and language elements (Operators, Conditional Controls, and Statements). Javascript is primarily used on the client side to control the browser elements and HTML Document Object Model (DOM) to offer interactivity to users.

Double and Triple equal operators in PHP

Even if you're a seasoned programmer, you may not have seen triple equals operator in most programming languages. In PHP, the triple equals (===) operator was introduced in version 4 and it checks for equality similar to the double equals (==) operator but also checks the type of variable. Here are the differences between single, double, and triple equals operators.

Where is php.ini file located?

When you are working with various flavors of Linux servers, you may not know where the php.ini file is located. The php.ini file is a PHP configuration file that is used to customize the behaviors and features of the PHP scripting language. A php.ini file is placed in different directory locations of a server depending on the flavor and version of the Linux server you're working with.