Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 136739 программистов и 1161 робот. Сейчас ищут 1052 программиста ...
uopz_extend - Extend a class at runtime
Вернуться к: Uopz Функции
uopz_extend
(PECL uopz >= 1.0.0)
uopz_extend — Extend a class at runtime
Описание
void uopz_extend
( string
$class
, string $parent
)
Makes class extend parent
Список параметров
-
class -
The name of the class to extend
-
parent -
The name of the class to inherit
Возвращаемые значения
Примеры
Пример #1 uopz_extend() example
<?php
class A {}
class B {}
uopz_extend(A::class, B::class);
var_dump(class_parents(A::class));
?>
Результатом выполнения данного примера будет что-то подобное:
array(1) {
["B"]=>
string(1) "B"
}
Вернуться к: Uopz Функции