PHP 6 has been around for some years. Although PHP 5 is widely used, PHP 6 is still a trend in the future. So what changes have PHP 6 made for PHP 5 and what improvements have been made?1. Unicode supported
Unicode support is inevitable. Although
PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
#一, PHP variable definition: Variables are used to store values, such as numbers, text strings or arrays, V: string/integer/double/array/object
Naming rules:
1. The variable name of PHP is case-sensitive. 2. The variable name must begin with $3,
Changes and improvements in PHP6 compared with PHP5. PHP6 has been around for some years. although it is still commonly used in PHP5, PHP6 is still a trend in the future. So what are the changes and improvements of PHP6 for PHP5? PHP 6 has been
__wakeup () function usage
__wakeup () is used in deserialization operations. Unserialize () checks for the existence of a __wakeup () method. If present, the __wakeup () method is invoked first.
Class a{function __wakeup () {Echo ' Hello ';}}$c =
PHP pre-defined variable (2 ). PHP pre-defined variables (II) IV. Session variables ($ _ SESSION): the data generated by the php session function is in the form of super global variables, stored in the $ _ SESSION variable. 1. Session introduction
& Amp; lt ;? PhpPrivilegeAction. class. php {code...} & amp; lt ;? Phpindexphp {code ...}
// PrivilegeAction. class. php
// Determine whether a constant is defined. If not defined, it means that it is not the index. phpif (! Defined ('access')
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.