If an object is converted to an array, the result is an array whose elements are the object's properties. The keys are the member variable names, with a few notable exceptions: integer properties are unaccessible;我对最后一句integer properties are unaccessible;不理解,谁能给讲讲
复制代码<?php
class A{
        public $a = 1;
}var_dump((array) new A());?>
 
上面是我测试的代码,貌似没有错啊,整形的属性可以被正确转换啊。