<?php $closure = fn (string $str) => "hello {$str}"; echo $closure('via regular')."\n\n\n"; echo $closure->__invoke('via __invoke')."\n\n\n"; print_r(get_class_methods($closure));
You have javascript disabled. You will not be able to edit any code.