PHP7增加了标量类型声明的特性,标量类型声明有两种模式 :强制模式(默认)严格模式1.语法格式:declare( strict_types=1 );代码中通过制定 strict_types 的值( 1 或者 0