Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想回应我的 var。
例如:
<?php echo $MONTH09; // Return September ?>
我需要像这样构建它:
<?php echo $$."MONTH".date('m'); ?>
但它不起作用。
谢谢你的帮助。
尝试:
echo ${'MONTH' . date('m')};
但打印月份的更好方法是:
echo date('F');