Kod
class foo{function __construct()
{
$this->text = 'Cześć, jestem klasa';
}
}
{
$this->text = 'Cześć, jestem klasa';
}
}
a taki:
Kod
class foo{
var $text = 'Cześć, jestem klasa';
}
? Czy po prostu wrzuca się tam jakieś działania, których bezpośrednio w klasie nie można wykonać (np. echo)?
var $text = 'Cześć, jestem klasa';
}