posix_strerror() - posix函数(可移植操作系统接口)
posix_strerror()
(PHP 4 >= 4.2.0, PHP 5, PHP 7)
Retrieve the system error message associated with the given errno
说明
posix_strerror(int $errno): stringReturns the POSIX system error message associated with the given$errno. You may get the$errnoparameter by calling posix_get_last_error().
参数
$errnoA POSIX error number, returned by posix_get_last_error(). If set to 0, then the string "Success" is returned.
返回值
Returns the error message, as a string.
范例
posix_strerror() example
This example will attempt to kill a process which does not exist, then will print out the corresponding error message.
以上例程的输出类似于:
No such process
参见
posix_get_last_error()
Retrieve the error number set by the last posix function that failed
鹏仔微信 15129739599 鹏仔QQ344225443 鹏仔前端 pjxi.com 共享博客 sharedbk.com
图片声明:本站部分配图来自网络。本站只作为美观性配图使用,无任何非法侵犯第三方意图,一切解释权归图片著作权方,本站不承担任何责任。如有恶意碰瓷者,必当奉陪到底严惩不贷!