What's going on YouTube?
In this video, we will create an object using a string. The way this work is that when we use the statement:
new $classname();
It will send a command to the PHP Interpreter to create a new object from a class name that matches the value of $classname. Pretty neat stuff!
Watch video PHP 101: Creating an Object from a String online without registration, duration hours minute second in high quality. This video was added by user WebDev Dave 25 April 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 89 once and liked it 1 people.