用die($msg)来设调试,若$msg为整型,则不打印结果
今天用die()函数来debug程序,它死活不打印出来。后来查了下手册,发现原来die() 函数,传入的参数是整型时,参数会被识别为退出状态码,而不打印出来。以下是手册中的解释:
If status
is an integer
, that value
will also be used as the exit status. Exit statuses should be in th...
原创
2010-07-15 11:25:36 ·
171 阅读 ·
0 评论