看注释
firstname = $firstname; $this->lastname = $lastname; }}$customer = new Customer('John', 'Doe');$greeting = function($message) { return "$message $this->firstname $this->lastname!";};echo $greeting->call($customer, 'Hello');?>
输出
Hello John Doe!