Document directory
The next popular version of PHP 6.0 has entered the snapshot stage and will soon be released. PHP 6.0 will contain many new features and syntax improvements, which will make object-oriented programming easier. In addition, there are many important improvements, such as the Unicode core support, this will make PHP more suitable for global support and healthy development.
PHP is an open-source scripting language that is popular all over the world and runs on tens of thousands of websites. php 6.0 will be fully compatible with other exciting features.
1. Better Unicode support
There are many improvements to Unicode String Support in PHP's core functions. These new features will have a huge impact because they allow PHP to provide more support for international characters. So if a developer or architect uses a different language, such as a Java programming language, because it has more international support than PHP, it will take a little time to consider PHP when it supports improvement.
2. namespace: namespace
It will avoid variable name conflicts between functions and classes.
A namespace is a method that prevents your functions, classes, and methods from being read due to name conflicts between functions or classes, rather than Prefix naming conventions. Therefore, by using a namespace, you can name a class name that someone else may already use, without worrying about errors during running. The following provides an example of using a namespace in PHP.
﹤?php// I'm not sure why I would implement my own XMLWriter, but at least// the name of this one won't collide with the one built in to PHPnamespace NathanAGood;class XMLWriter { // Implementation here...}$writer = new NathanAGood::XMLWriter();?﹥
3. exciting features of Web 2.0
It depends on how you use PHP and what your current script looks like. The current language and syntax differences may or will not affect the following features to the greatest extent, this refers to the PHP applications that directly allow you to reference web 2.0 features.
1) soap
Simple Object Access Protocol (SOAP: Simple Object Access Protocol) SOAP can be used with many existing Internet protocols and formats, including Hypertext Transfer Protocol (HTTP ), simple Mail Transfer Protocol (SMTP), multi-purpose Internet Mail Extension protocol (MIME ). It also supports a large number of applications from the message system to Remote Process calling (RPC.
SOAP is a network service "speaking" protocol and supports many other languages, such as Java and Microsoft. NET, although there are other methods to drive and use network services, such as the Representational State Transfer REST, SOAP is still the most common in making different platforms operable. In addition, SOAP is used in PHP extensions and PEAR libraries. SOAP is not supported by default in PHP, so you can enable this extension or ask your ISP to enable it. In addition, the PEAR package allows you to create SOAP clients and servers, such as SOAP packages.
If you change the default settings, SOAP will be enabled in PHP 6. This extension will provide you with easy implementation of SOAP clients and SOAP services, allowing applications you write to provide use or network services.
If SOAP extensions are set by default, it means you cannot set them in PHP. If the PHP applications you develop and they are published to an ISP Server, you may need to check your ISP to verify SOAP and enable upgrade for them.
2) XML:
Since PHP 5.1, XMLReader and XMLWriter are included in the PHP kernel, which makes XML programming easier.
4. Deleted content:
Of course, in addition to adding new features, some features that will bring instability and security risks to the system will also be canceled.
The PHP 6 engine will delete some functions that are already available in earlier versions. Most of these features, such as register_globals and safe_mode, are regarded as "broken" in current PHP ". Because they may expose some security risks. In the effort to clear PHP, these will be deleted or discarded from PHP in the next version. Opponents think that most ISPs or enterprises will keep their current scripts because upgrading to PHP6 will destroy the current scripts, But supporters think they are very happy to see the PHP team fix these vulnerabilities and provide a clean, A secure running tool.
The following is a list of canceled content:
◆ Magic_quotes
◆ Register_globals
◆ Register_long_arrays
◆ Safe_mode
◆ Magic_quotes