Well, I'm programming again! (Yay, me!) But I'm so out-dated with everything, that I'm wondering about something...
Seeing as I can't test this until I finish more of it, I can only hope it'll work someday... So, the question is rather simple and I feel quite dumb to be asking this...
Suppose I have this:
code:
<?
class Something {
function Something($sth, $blah) {
if($blah == false) {
$this->Something(functionToMakeSth(), true);
}
echo $this->property1;
}
}
?>
Can I actually call the constructor again from inside the constructor? Will the changes reflect on $this later on?
For now, I'm leaving it that way until I can actually run the script. But it'd be nice to know if I'm doing it right, because I might need to do something similar in other classes.