php的恒量

WBOY
Release: 2016-06-13 11:43:07
Original
826 people have browsed it

php的常量

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

?

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

?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template