负数字符串经过int处理之后还是负数

<?php
$v = '-1';
$b = (int)$v;
echo $b;

posted @ 2019-03-22 17:25  TBHacker  阅读(427)  评论(0编辑  收藏  举报