Home > Backend Development > PHP Tutorial > 这里如何理解呢

这里如何理解呢

WBOY
Release: 2016-06-23 13:44:21
Original
850 people have browsed it

这是discuz中的一段代码,为了是判断php的版本号,我不理解的是,即然版本号都定为一个5.4.0RC6字符串了,哪来的比较呢,就好比,adafasdf这个字段串和wdsfa这个字符串比大小,这不是不伦不类吗,这里面的道理何在?


回复讨论(解决方案)

PHP_VERSION 是预定义常量,不能被覆盖
难道你那里不报错吗?

PHP_VERSION 是预定义常量,不能被覆盖
难道你那里不报错吗?


你的覆盖指的是个啥

指重新定义

define('PHP_VERSION', '6');
Copy after login
Notice: Constant PHP_VERSION already defined in ....

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