Can you please tell me what kind of PHP syntax is:
echo Html::{'div.my-class#my-id'}('This is element content')
?
It’s from https://github.com/decodelabs/tagged library.
I mean I know what it does, but I don’t understand the syntax used and why it works 🙂 (braces immediately after the scope operator). Looks like they’re using braces to ‘generate’ the name of the function to call, but – on the other hand – it contains characters like ‘.’ and ‘#” and variable parameters (‘my-class’, ‘my-id’). I’m confused…
I tried googling for over 2 hours, but no luck :/