Home  >  Article  >  Backend Development  >  奇葩面试题:echo max(null,true);

奇葩面试题:echo max(null,true);

WBOY
WBOYOriginal
2016-06-06 20:10:26867browse

奇葩面试题:echo max(null,true);

回复内容:

奇葩面试题:echo max(null,true);

自动类型转换,
null 转为 0 ,true1
所以 echo max(null,true) 结果为 1

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