That's the problem, how can I call a class variable from a class function? Let me explain better:
<?php
class Mine
{
private $g = 'gg';
const COSTANTE = 'valo';
public static function sayHello()
{
echo self::COSTANTE;
echo '<br>';
echo $this->g;
}
}
$h = new Mine();
$h->sayHello();
$h::sayHello();
?>
when I run this, it just print the constant COSTANTE.... Why it doesn't print the variable g?