Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 339 Bytes

call.md

File metadata and controls

20 lines (15 loc) · 339 Bytes

call

function call(args...) in Core extension

Call a callback

$twig->render('template.twig', array(
    'closure' => function ($name) { return 'hello ' . $name; }
));
{% if closure is callable %}
  {{ call(closure, 'kzykhys') }}
{% endif %}

see also: callable