Programming

How to compare objects in PHP

PHP offers a simple way to compare objects using the comparison (==) and identity (===) operators.

When using the comparison operator (==), object variables are compared in a simple manner: Two object instances are equal if they have the same attributes and values and are instances of the same class.

When using the identity operator (===), object variables are identical if and only if they refer to the same instance of the same class.

How to compare objects in PHP Read More »

How to Read XML files in PHP?

PHP

Over the past 4 years I have worked with many XML providers (interconnecting B2B applications) and some of these providers distribute big XML files, some of them have more than 2GB, as you may already suspect we should not dump 2GB of information into memory because PHP will generate a memory overflow fatal error and your application will not be able to recover by itself, so in this post I will explains how to solve this problem, using…

How to Read XML files in PHP? Read More »

What is new in PHP 7.0?

The PHP community continues to add new features and functionality to this popular programming language in order to make it more attractive, functional and useful. The version 7 (released on December 3) is considered one of the major updates in all the history of PHP due the Zend Engine was refactored to achieve best performance and best use of the memory. Also new features that facilitate and accelerate web development were introduced.

What is new in PHP 7.0? Read More »

Anonymous functions in PHP

PHP
With the release of version 5.3.0, PHP development team incorporated what are called anonymous functions or closure.

An anonymous function, as its name implies, is nothing more than a function that has no name and that can be used as a callback allowing greater elegance and readability of source code, it is also possible to assign an anonymous function to a variable as were another data PHP type. PHP internally converts this variable in an instance of the Closure class.

Anonymous functions in PHP Read More »

What is new in PHP 5.5?

PHP
In recent years the PHP community has made a great effort to improving and adding new features and functionality to this popular programming language in order to make it more attractive, functional and useful. With the release of PHP 5.5 have been introduced some features very expected by the developer community. Today LibreByte proposes to show everything new which brings PHP 5.5.

What is new in PHP 5.5? Read More »