The example is following:
<?php
class test{
const A = "1";
const B = "2";
public function getStr($a){
echo self::$a;
}
}
$c = new test();
$c->getStr("A");
?>
How can I echo variable "A" in the window, when I use getStr("A")
construct()function for that