Query: uopz_extend
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
UOPZ_EXTEND(3) 1 UOPZ_EXTEND(3) uopz_extend - Extend a class at runtimeSYNOPSISvoid uopz_extend (string $class, string $parent)DESCRIPTIONMakes $class extend $parentPARAMETERSo $class - The name of the class to extend o $parent - The name of the class to inheritRETURN VALUESEXAMPLESExample #1 uopz_extend(3) example <?php class A {} class B {} uopz_extend(A::class, B::class); var_dump(class_parents(A::class)); ?> The above example will output something similar to: array(1) { ["B"]=> string(1) "B" } PHP Documentation Group UOPZ_EXTEND(3)
| Related Man Pages |
|---|
| property_exists(3) - php |
| class_implements(3) - php |
| class_exists(3) - php |
| class_parents(3) - php |
| is_a(3) - php |