How to check if a defined constant exists in PHP?

后端 未结 6 533
一整个雨季
一整个雨季 2020-12-29 19:35

So I\'m using a PHP framework called fuelphp, and I have this page that is an HTML file, so I can\'t use PHP in it. I have another file tha

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-29 20:12

    I take it you mean CONSTANTS not variables! the function is defined();

    see here: defined

提交回复
热议问题