• 周四. 4月 25th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

php之异常处理

admin

11月 28, 2021
<?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/>';
}

  

《php之异常处理》有3个想法
  1. Wow, awesome blog layout! How long have you been blogging
    for? you make running a blog glance easy. The whole glance of your web site
    is excellent, as neatly as the content material!
    You can see similar here e-commerce

  2. An impressive share! I have just forwarded this onto a coworker who was doing a little research on this.

    And he actually bought me breakfast due to the fact that I found it for
    him… lol. So allow me to reword this…. Thanks for the meal!!
    But yeah, thanks for spending the time to discuss this matter here on your web site.
    I saw similar here: Najlepszy sklep

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注