Home  >  Article  >  Backend Development  >  php的恒量

php的恒量

WBOY
WBOYOriginal
2016-06-13 11:43:07784browse

php的常量

常量是php脚本中定义的不会改变的值。函数define()用于定义常量。常量一旦被定义,就不能改变,只能通过常量名访问常量,在常量名前没有符号$

?

<?phpdefine ("PI",3.1415926);print PI;?>

?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn