What "returns $ container & # 8594; {$ resource};" I mean
2 answers
Brackets must use variable variables. This facilitates the distinction between:
// gets the value of the "resource" member from the container object
$container->resource;
and
// gets the value of the "foo" member from the container object
$resource = 'foo';
$container->$resource;
You can read more here: http://php.net/manual/en/language.variables.variable.php
+4