<?php
class test {
public $hello = 'world';
public function test() {
$this->hello = 'bubblerubble';
echo var_dump( get_class_vars( get_class() ) );
}
}
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; test has a deprecated constructor in /in/quSTA on line 3