相关疑难解决方法(0)

你可以在php中抛出数组而不是字符串作为例外吗?

我想在php中将数组作为异常而不是字符串.如果你定义自己的扩展Exception类的类,是否可以这样做?

例如 throw new CustomException('string', $options = array('params'));

php custom-exceptions

22
推荐指数
3
解决办法
2万
查看次数

标签 统计

custom-exceptions ×1

php ×1