Language Selection

English French German Italian Portuguese Spanish

What’s new in PHP 5.3

Filed under
Software

In my previous post I mentioned that PHP 5.3 will be released in early 2008 so I think it’s just in time to talk about the features of this version. It is started by this polling (in detail, in an ordered version) on the internal list. The big gun features are namespaces, late static binding and mysqlnd, but there are other interesting improvements, for example __callStatic, dynamic static calls. In this part of this series we are going to analyze namespaces in detail.

NAMESPACES BASIC

Namespace support in PHP was a long-felt want feature. In PHP the main motivation behind adding namespace support to the language was to solve the problem of long class names. If you develop a bigger library, you have to use long class names to avoid naming conflicts, for example look at this monster: Zend_Search_Lucene_Analysis_Analyzer_Common_Text_CaseInsensitive.

From the version 5.3 you can group your code into namespaces. Different namespaces can contains classes, functions, constants with the same name. Defining a namespace is very straightforward, you should use the namespace statement in the very beginning of the file, for example:

part 1: namespaces

part 2: late static binding

part 3: mysqlnd

part 4: __callStatic, OpenID support, user.ini, XSLT profiling and more




More in Tux Machines

Airdroid - Transfer Files Between Android Phones/Tablets and Linux (Any Distribution)


airdroid transfer file between android phone/tablet and linux mint ubuntu

We often need to transfer large amount data in the form of mp3 Songs, Video Songs, Movies and most importantly, large Games! Transferring via USB cable takes time, so let's do it with 'Airdroid' easily and quickly.
 
 
 
 
 
 

Read at LinuxAndUbuntu

Don't Use Ubuntu, Use Mint - or elementary

Tech Drive-in today listed seven reasons he prefers elementary OS over Ubuntu. Despite all that, Michael Larabel today reported on the improved performance of Ubuntu 15.04 on newer machines. Read more

7 reasons why I prefer elementary OS Freya over Ubuntu 14.10 "Utopic Unicorn"

When we laid out our featured article on things you need to do after installing Ubuntu 14.10, we shared a few little issues we have had with the latest Ubuntu release. Well things got worse, and I decided to try something else for a change. I've been using elementary OS Freya as my daily driver since then. And I have to say, I'm mighty impressed so far. And the fact that Freya is still very much in beta makes the whole affair all the more interesting. A list of reasons why I prefer elementary OS Freya over Ubuntu 14.10 at the moment. Read more

Don't Use Ubuntu, Use Mint - or elementary

The top story today continued to be the GHOST vulnerability covered last night, probably because the name lends itself to cute headlines - most with a twist on "Ghost in the Machine." But elsewhere, the How-To-Geek said today that new users should stick to Linux Mint instead of Ubuntu. He's not the only one, Tech Drive-in today listed seven reasons he prefers elementary OS over Ubuntu. Despite all that, Michael Larabel today reported on the improved performance of Ubuntu 15.04 on newer machines. Read more