<?php
abstract class A {
const MSG = 'I am the base class';
// You'd think this would print out the above, but it prints out the one that's extending this instead
public function getOriginalMessage()
{
echo self::MSG;
}
}
class B extends A{
const MSG = 'I am Class B';
}
$b = new B;
$b->getOriginalMessage();