In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Today, the editor will share with you the relevant knowledge about what the new features of php-5.6 are. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
Php-5.6 refers to the official version of PHP5.6 that has been released. New features of PHP5.6 include scalar operations for constants, parameter call improvements, split parameters, _ debuginfo (), and so on.
This article operating environment: Windows7 system, php-5.6 version, Dell G3 computer.
What is php-5.6?
Represents the official version of PHP5.6, the new version adds some practical new features, but also abandons some redundant features. At the same time, some of the original functions are improved. Let's take a look at how the official version of PHP 5.6 is different.
Improvements made by the new version on the basis of the old version
Many improvements have been made to the old version of PHP in PHP 5.6. However, most of the PHP5 code works without modification in the new version of PHP.
Json_decode function
According to the JSON specification, the json_decode () function automatically excludes all non-lowercase variables (such as true, false, null, etc.) in the JSON text, and modifies the variables in the json_last_error () function accordingly.
GMP resources
In PHP 5.6, the GMP resource is an object (Object), and if you don't use the is_resource () function, you don't need to modify any existing code.
Array values and overrides
In versions prior to PHP 5.6, when you declared an array in Class, the array values were overwritten in some cases
New features in PHP 5.6
Scalar operation of constant
In PHP version 5.6, you can implement scalar operations (Scalar Expression) for constants that contain numeric values and strings. As shown below:
Parameter call improvement
In previous versions, we used the func_get_args () function to call all available parameters. In PHP 5.6, you can use the string "..." To complete the above operation.
Partition parameter
We can also use the string "." To open parameters in any array.
_ debuginfo ()
In PHP 5.6When you use the var_dump () function to output an object, you can change the properties and values of the object.
That's all of the article "what are the new features in php-5.6?" Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.