php - generate class name? -


how can this?

require_once 'class.table_'.$table.'.php'; $class = new table_$table(); 

$classname = $var.'somestring'.$var2;  $obj = new $classname(); 

in case

$classname = 'table_'.$table;  $obj = new $classname(); 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -