Let me give an example first:
class AnObject {
$aVariable = "Something";
public function __construct($cool) {
echo $aVariable;
$aVariable = $cool;
}
}
When accessing any variables inside this class, I'm assuming that $this is implicitly applied? Meaning there's no reason to do $this->aVariable = $cool? Another question.. when I do $aVariable = $cool, $aVariable becomes a copy of $cool and not a reference, correct?