Home  >  Article  >  Backend Development  >  PHP弱门类的语言 和 JAVA计算 的强类型

PHP弱门类的语言 和 JAVA计算 的强类型

WBOY
WBOYOriginal
2016-06-13 13:11:10830browse

PHP弱类型的语言 和 JAVA计算 的强类型
今天因为一个java的 int类型的数据 而 在PHP是不区分int和String类型的 在js上出现的bug 而查找一天



写程序 就怕遇到 空值 和 弱类型和强类型转换 等不易察觉的错误

今天用freemarker 显示后台的 传list  报错  freemarker 遇到 空值 就会报 XX没有定义 这是freemarker 的一个弱点 不忽略 空值

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