字符串转化为整型,为0,而不是1

<?php
$str = 'AAA';//NaN,undefined----int后都为0;
echo (int)$str;//0

 

posted @ 2017-10-20 13:34  盘思动  阅读(439)  评论(0编辑  收藏  举报