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

<?php
$str = 'AAA';//NaN,undefined----int后都为0;
echo (int)$str;//0
原文地址:https://www.cnblogs.com/pansidong/p/7699072.html