Skip to content

is it possible to create methods with parameters in $app->register #397

@karamusluk

Description

@karamusluk

As title indicates, i am wondering whther it is possible to create a method like

`$app->register('abc', function($a, $b) {

   return $a."<br>".$b;

});`

and then use it like
echo $app->abc("hello", "xxx");

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions