1> if( “false” ) 等效于 if( true), 因为非空字符串是true 2> 检查数据类型: is_array(); is_object(); is_string(); is_null(); is_integer(); 3> PHP5 引入类的类型提示(type hint),用来约束一个方法的参数类型(不是基本数据类型,而是类):将类名放在需要约束的方法参数之前. 例如: function write( ShopProduct $shopProduct){} 4> instanceof 操作符: 如果左边操作数的对象是右边操作数所示的类型,结果为true 例如: if( $s