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 |
---|
class_alias(3) - php |
class_uses(3) - php |
is_a(3) - php |
uopz_flags(3) - php |
uopz_function(3) - php |
Similar Topics in the Unix Linux Community |
---|
Simple rules of the UNIX.COM forums: |
Rules for Homework & Coursework Questions Forum |
Forum Video Tutorial: How to Use Code Tags |
Please Welcome Nicki Paul to the Moderator Team! |