标签:ble div lin 获取 dem func pes catch tco
<?php
declare(strict_types = 1);
function demo(int $v):int{
return 1;
}
try{
demo("1");
}catch (Throwable $e)
{
//获取错误信息
echo $e->getMessage().‘<br/>‘;
//获取错误文件
echo $e->getFile().‘<br/>‘;
//获取错误行号
echo $e->getLine().‘<br/>‘;
//获取错误Code
echo $e->getCode().‘<br/>‘;
}
标签:ble div lin 获取 dem func pes catch tco
原文地址:https://www.cnblogs.com/shixiuxian/p/9933973.html