Posts Tagged: php 5.4

Traits in PHP 5.4 – Why we need Traits

Posted by & filed under OOPS.

php-why-traits

Traits is one major addition to PHP. We read an introductory article about Traits in PHP 5.4. In the post, we saw an example code which only resembles single inheritance. So, what is the actual purpose of Traits and why do we need to use Traits in our code.
Suppose a website has two types of Continue reading…

Traits in PHP 5.4 – Introduction

Posted by & filed under OOPS.

Traits in PHP

The languages like C++ and Python allow the maximum reusability of the code by allowing multiple inheritance of classes. Mixins is an alternative for increasing code re-usability in the languages that don’t support inheritance. Ruby and Ext JS 4 have Mixins to mix the functionality of one or more classes without using inheritance. We read about the introduction Continue reading…

Array Syntax and Dereferencing in PHP5.4

Posted by & filed under PHP.

php5.4 array short syntax dereferencing

PHP saw a major facelift with the release of PHP 5.3 on 1st July 2009. PHP 6 was supposed to be the next major release of the popular web development language. However, some issues with Unicode delayed PHP 6 and most of the features of PHP 6 were moved to PHP 5.4. PHP 5.4 was Continue reading…

New in PHP 5.4 – Improvements in Session Extension

Posted by & filed under PHP.

php5.4 session extension

The PHP 5.4 RC6 was released on 24th Jan 2012. The next release is expected on 2nd Feb 2012. The version is not final and thus, not recommended for production use. However, there are many interesting improvements that are already a part of the RC6 version. PHP 5.4 includes the best parts of the PHP Continue reading…