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
yaf_bootstrap_abstract(3) - php
class_parents(3) - php
classkit_method_copy(3) - php
uopz_compose(3) - php
uopz_function(3) - php
Similar Topics in the Unix Linux Community
Forum Video Tutorial: How to Use Code Tags
UNIX.COM 2017 Year End Summary
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
New Code Tags (Syntax Highlighting)
Status of UNIX.COM Forum Transformation