$el = array_shift($instance->find(..))
上面的代码以某种方式报告了严格的标准警告,但这不会:
function get_arr(){ return array(1,2); } $el = array_shift(get_arr());
那么它什么时候会报告警告呢?
php reference strict
php ×1
reference ×1
strict ×1