I saw in this SO answer that one can use a string inside curly braces to call a PHP class method so that
$player->SayHi();
Can be alternative written as:
$player->{'SayHi'}();
My questions are:
What is this syntax called in PHP? and what happens if a wrong string that does not correspond to a method is used?
Also, can I use this syntax to call non class methods?
I looked at the answers in the linked post, and there is only links to PHP callback syntax, which does not seem to cover the curly brace syntax.
Thanks,