Need something like this:
$obj = new \namespace\$className(...);
The problem is that php swears on \namespace\ .
\namespace\
$className = '\namespace\\' . $className; $instance = new $className;
Source: https://ru.stackoverflow.com/questions/382679/More articles:String containsMysql price and quantity selectionHelp with Gitlab users. [closed]Prevent indexing in robots.txtCreating an object from a virtual classroomTransfer data from ListBox and memo on the first form to the second form as a tableIncorrect selector operation for Checkboxes in CheckBoxPreferenceSync Gitlab and GithubFind for stringSQL query that creates a line and returns its idAll Articles