Advanced PHP
June 3, 2026 1 min read

PHP Late Static Binding for Accessing Static Properties

HS
HEMANT SINGH
Technical Writer & Educator

PHP late static binding is used to access static properties of derived class using the method of base of class.

class Account{
	public static $name="Aman";	
	public function show(){
		echo static::$name;
	}
}

class User extends Account{
	public static $name="Rama";	
}

$user = new User();
$user->show();