<?php function yourFunction($text, callable $myFunction) { return $myFunction($text); } $offset = 5; echo yourFunction('Hello World', function($text) use($offset) { return substr($text, $offset); });
You have javascript disabled. You will not be able to edit any code.