Inf and NaN cannot be JSON encoded

0/0 = NaN 1/0=Inf 这个错误不能用@ 屏蔽, NaN和Inf 不能转化json
Inf and NaN cannot be JSON encoded 针对php7+

遇到问题,记录一下

你可能感兴趣的:(php)