As As As¶
<?php
trait t {
function as() { echo 'as'; }
}
class x {
use t { as as as ;}
}
(new x)->as();
// prints as
it is possible to call a method ‘as’, because relaxed keywords PHP methods
it is possible to import a method from a trait, and alias it to itself.
It is possible to write ‘as as as ‘ in PHP and make sense.
See Also¶
PHP Features¶
Last updated: 14 July 2026