I want to create object from string type variable but I'm failed. I am trying this -
My code:
$variableName="I am a novice OOP programmer";
$variableInstance= new $variableName();
echo $variableInstance;
Output notice is Fatal error: Uncaught Error: Class 'I am a novice OOP programmer' not found
If you kindly get me another answer what is fatal error? And why it may be shown?