实例
实例
<?php
class A {
function A() {
print('Style Constructor');
}
}
?>
以上程序执行输出结果为:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; A has a deprecated constructor in...
以静态的方式调用非静态方法
以静态的方式调用非静态方法,不再支持:
实例
实例
<?php
class A {
function b() {
print('Non-static call');
}
}
A::b();
?>
以上程序执行输出结果为:
Deprecated: Non-static method A::b() should not be called statically in...
Non-static call
password_hash() 随机因子选项
函数原 salt 量不再需要由开发者提供了。函数内部默认带有 salt 能力,无需开发者提供 salt 值。