Self

self is one of the three special keywords that are used to access properties or methods from inside the class definition. It relates to the current written class.

self is traditionally written lower-case, although it is case-insensitive. self is a PHP keyword.

<?php

class X {
    private const X = 1;

    function foo() {
        // same as \X::C;
        return self::C;
    }
}

?>

Documentation

See also https://phppot.com/php/php-self-vs-this/, https://www.studytonight.com/php/php-this-keyword

Related : static, parent, Keyword, Child Class, Language Construct, PHP Natives, Special Types, Late Static Binding