Now a days PHP 6 is a very popular term among all php developers.
Also several books in the market have already written about PHP 6 such as PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide (3rd Edition) (link).
Ten Main Features in PHP 6 are as follows:
- Internationalization: Native Unicode – UTF-8 – to the core (strings, APIs).
- Performance: Page level (opcode) caching through moving Alternative PHP Cache (APC) into the PHP core. Native application caching.
- Break to label: Sending a break to a label (like a goto).
- Enhanced array indexing: Array indexing can be used to substring or take an array slice.
- Namespaces
- Late static binding
- Mysqlnd – nd for Native Driver
- Foreach on multidimensional arrays
- Removed features – register globals, magic quotes, safe mode, ereg removed from the core
- Calling dynamic functions statically throws E_ERROR
Please pen down your thoughts in comments if I missed any features
Check out my previous post on New features in PHP 5.4 version
Thanks
Hello. I certainly appreciate the nod to my book, but I’m quite stunned that you’d post this in 2012. Not only is PHP 6 NOT a popular term among developers, PHP 6 is very much dead in the water. When I wrote the book, PHP 6 was about 50% complete, but it long since died. In fact, I just completed the fourth edition of that book, and removed all references to PHP 6 that were in it.
Further, almost all of the “Top 10 Main Features of PHP 6” that you reference have since been incorporated into PHP 5.2, 5.3, and the forthcoming 5.4. It’s your blog, of course, but I would recommend you remove this post. No offense intended, but its inaccuracies will reflect poorly on you.
Just my two cents worth. Again, I appreciate the book mention and what you’re trying to do here.
Larry