Reputation: 2567
found cosole command in Yii. And there I found method:
public function getHelp()
{
$output = "This command will allow you to remove some Yii temporary data \n\n";
return $output.parent::getHelp();
}
I cant understand what does mean this:
return $output.parent::getHelp();
I know this
parent::getHelp();
call parent method. But what do full construction ?
Upvotes: 0
Views: 54
Reputation: 44841
.
is the string-concatenation operator in PHP. So, the code you are looking at just returns the value of $output
concatenated with the value of parent::getHelp();
. If $output
is foo
and parent:getHelp()
returns bar
, then the return
value is foobar
.
Upvotes: 4