I am trying to understand this line of code:
$ret = $box->$command();
The method command is not defined in the class $box, and it is strange that there is a $
before command. I just don't get it.
$foo = 'bar';
$obj->$foo(); // calls the bar() method
You're looking at variable method calling.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With