Lines Matching refs:class
2 Test array_map() function : object functionality - class methods as callback function
7 * 1) child class method using parent object
8 * 2) parent class method using child object
9 * 3) child class method using parent class
10 * 4) parent class method using child class
12 echo "*** Testing array_map() : class methods as callback function ***\n";
16 class ParentClass
27 class ChildClass extends ParentClass
45 echo "-- accessing parent method from child class --\n";
48 echo "-- accessing child method from parent class --\n";
55 echo "-- accessing parent method using child class object --\n";
58 echo "-- accessing child method using parent class object --\n";
68 *** Testing array_map() : class methods as callback function ***
69 -- accessing parent method from child class --
78 -- accessing child method from parent class --
79 array_map(): Argument #1 ($callback) must be a valid callback or null, class ParentClass does not h…
80 -- accessing parent method using child class object --
89 -- accessing child method using parent class object --
90 array_map(): Argument #1 ($callback) must be a valid callback or null, class ParentClass does not h…