Voting

: six minus one?
(Example: nine)

The Note You're Voting On

sergey dot karavay at gmail dot com
12 years ago
At first, you might wonder that:
<?php class A {}; class_alias('A', 'B'); ?>

is equivalent to:
<?php class A {}; class B extends A {}; ?>

class_alias is NOT equivalent to class extending! Private methods/properties are unseen in child classes, but in alias classes they are.

<< Back to user notes page

To Top