php man page for uopz_extend

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 runtime

SYNOPSIS
void uopz_extend (string $class, string $parent)
DESCRIPTION
Makes $class extend $parent
PARAMETERS
o $class - The name of the class to extend o $parent - The name of the class to inherit
RETURN VALUES
EXAMPLES
Example #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_parents(3) - php
class_uses(3) - php
classkit_method_copy(3) - php
reflectionclass.newinstanceargs(3) - php
Similar Topics in the Unix Linux Community
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch