I have seen this at a lot of place but have never understood it's meaning or working... for example:
// Registry
$registry = new Registry();
// Loader
$loader = new Loader($registry);
$registry->set('load', $loader);
If someone can elaborate this, I will be very greatful... thanks in advance...
That calls a method on an instance of a class or accesses a field of an instance of a class. You may find this page useful.
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