<?php define("DATA_PATH", "AAA"); class a { public $b; public function __construct($path) { $this->b = $path."BBB"; } } $t = new a(DATA_PATH); echo $t->b;
You have javascript disabled. You will not be able to edit any code.