2012-07-30 80 views

回答

21
$variable = $classname.'::'.$constant; 

constant($variable); 

請參閱該文檔:http://php.net/constant

+0

你快...... – 2012-07-30 08:31:19

+2

其實我有同樣的問題,今天早些時候,我GOOGLE了它。 – Summoner 2012-07-30 10:10:11

相關問題