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!
Смотрите видео PHP 101: Creating an Object from a String онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь WebDev Dave 25 Апрель 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 89 раз и оно понравилось 1 людям.