As As As

<?php


trait t {
    function as() { echo 'as'; }
}

class x {
    use t { as as as ;}
}

(new x)->as();
// prints as
  1. it is possible to call a method ‘as’, because relaxed keywords PHP methods

  2. 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