Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php instance class from string

$class = 'FooBarMyClass'; 
$instance = new $class();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #instance #class #string
ADD COMMENT
Topic
Name
9+5 =