<?php namespace A\B; class Continent { } $objectName = 'Continent'; print $objectName; // Continent //new $objectName; // Fatal error: Class 'Continent' not found new Continent; // Works $class = '\A\B\\' . $objectName; // new $class; // Works
You have javascript disabled. You will not be able to edit any code.