Category: Programming

What's new in PHP 7.4?

The PHP development team announced, on november 2019, the immediate availability of PHP 7.4.0. This release marks the fourth feature update to the PHP 7 series.

PHP 7.4.0 comes with numerous improvements and new features

What's new in PHP 7.3?

The PHP 7.3 was released on December 2018, although were not much improvements as it were in the version 7 and version 7.1 it is worth to check the news added features.

What is new in PHP 7.2?

In this post we’re going to check 5 new features of PHP 7.2: New object type, Extension loading by name, Abstract method overriding, Sodium Cryptography library and Parameter type widening

What is new in PHP 7.1?

On December 1, 2016 the PHP development team released the PHP 7.1 version, 12 news features was added, here we covered 8 of them: Nullable types, Void functions, Symmetric array destructuring, Class constant visibility, ...

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.

Read XML files efficiently 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...

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.

Formatting XML using Python or PHP

To format XML files usually I use option 3 described in How to pretty print XML on GNU/Linux but recently I've needed to work with XML files which in addition to being obfuscated one part of it use html entities.

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.

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.