2014-09-15 定数の動的出力 PHP constant()関数を使う define('hogehoge', mogemoge); $value = 'hogehoge'; echo constant($value); これでmogemogeと出力される