What does this PHP function return?

exortiog

New Member
\[code\]public function add($child){ return $this->children[]=$child;}\[/code\]Btw, this is an excerpt from PHP in Action by Dagfinn Reiersol. According to the book, this returns $child, but shouldn't it return true in case of successful assignment and false otherwise? Thanks in advance
 
Back
Top