- Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- Deprecated: reset(): Calling reset() on an object is deprecated in /in/hnVHQ on line 13 string(4) "test"
- Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30
- array(1) { ["id"]=> int(1) }
<?php
class A {
protected $a = 'test';
}
class B extends A {
protected $b = ['id' => 1];
}
$b = new B();
var_dump(reset($b));