例如:
define('db_host', $ini) ;
define('db_host','23213') ;
Definitely not
Can constants be modified after they are defined? -PHP Chinese website Q&A-Can constants be modified after they are defined? -PHP Chinese website Q&A
Please watch and learn.
常量值被定义后,在脚本的其他任何地方都不能被改变,所以如果想修改的话,还是要回到定义常量的地方进行修改
Definitely not
Can constants be modified after they are defined? -PHP Chinese website Q&A-Can constants be modified after they are defined? -PHP Chinese website Q&A
Please watch and learn.
常量值被定义后,在脚本的其他任何地方都不能被改变,所以如果想修改的话,还是要回到定义常量的地方进行修改