Sometimes, you will need to use/call models/classes dynamically if you only have its fully qualified name as a string. So for example if you have a record and you got its class|model name using get_class($record), and now you need to access this model using the name you have right now. then you can use the following snippet to do so.