0
Php

PHP – 8.0 Match Expression

In PHP 8.0 there is a new feature or I should say a new language construct (keyword) going to be introduced,  which has been implemented depending on the following RFC. This RFC proposes adding a new match expression that is similar to switch but with safer semantics and the ability to return values. Let’s see an example using switch : The same […]

0
Php

New Union Type in PHP – 8

A new RFC has been finished voting and accepted for PHP – 8. That is “Union Types”, which is an extension of PHP’s type system. A union type accepts values of multiple different types, rather than a single one. PHP already supports two special union types: Type or null, using the special ?Type syntax. array or Traversable, using the special iterable type. However, […]

4
Php

Php 5.5.x and New Features

On 20-Jun-2013, the PHP development team has announced the immediate availability of PHP 5.5.0 and this release includes a large number of new features and bug fixes. The new features of PHP 5.5.0 includes : Generators : Support for generators has been added via the yield keyword. Generators provide an easy way to implement simple […]