Destructors in PHP
Destructor functions are the opposite of constructors. They are called when the object is being destroyed (for example, when there are no more references to the object). As PHP mak
Read tutorialTHE TUTORIAL LIBRARY
Destructor functions are the opposite of constructors. They are called when the object is being destroyed (for example, when there are no more references to the object). As PHP mak
Read tutorialInstances of classes are created using the new keyword. What happens during the new call is that a new object is allocated with its own copies of the properties defined in the clas
Read tutorialThe main difference in OOP as opposed to functional programming is that the data and code are bundled together into one entity, which is known as an object. Object-oriented applica
Read tutorialThe start expression is evaluated only once when the loop is reached. Usually it is used to initialize the loop control variable. The truth expression is evaluated in the beginning
Read tutorialThe do...while loop is similar to the previous while loop, except that the truth expression is checked at the end of each iteration instead of at the beginning. This means that the
Read tutorialwhile loops are the simplest kind of loops. In the beginning of each iteration, the while's truth expression is evaluated. If it evaluates to true, the loop keeps on running and th
Read tutorialYou can use the switch construct to elegantly replace certain lengthy if/ elseif constructs. It is given an expression and compares it to all possible case expressions listed in it
Read tutorialif statements are the most common conditional constructs, and they exist in most programming languages. The expression in the if statement is referred to as the truth expression. I
Read tutorialComparison operators enable you to determine the relationship between two operands.
Read tutorialAssignment operators enable you to write a value to a variable. The first operand (the one on the left of the assignment operator or l value) must be a variable. The value of an as
Read tutorialAll the binary operators (except for the concatenation operator) work only on numeric operands. If one or both of the operands are strings, Booleans, nulls, or resources, they are
Read tutorialIn PHP, you can define names, called constants, for simple values. As the name implies, you cannot change these constants once they represent a certain value. The names for constan
Read tutorialOne example today. A better developer tomorrow.