<?php class myClass { public $myClosure; public function __construct() { $this->myClosure = function($arg) { echo 'The arg is ' . $arg . PHP_EOL; }; } } $myInstance = new myClass(); ($myInstance->myClosure)('foo'); $myInstance->myClosure('bar');
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`