Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: error_get_last - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

error_log" width="11" height="7"/> <debug_print_backtrace
Last updated: Sun, 25 Nov 2007

view this page in

error_get_last

(PHP 5 >= 5.2.0)

error_get_last — 最後に発生したエラーを取得する

説明

array error_get_last ( void )

最後に発生したエラーについての情報を取得します。

返り値

最後に発生したエラーについての情報を連想配列で返します。連想配列のキーは "type"、"message"、"file" および "line" となります。 エラーが発生していない場合は NULL を返します。 yet.

Example#1 error_get_last() の例

<?php
echo $a;
print_r(error_get_last());
?>

上の例の出力は、たとえば 以下のようになります。

Array
(
    [type] => 8
    [message] => Undefined variable: a
    [file] => C:\WWW\index.php
    [line] => 2
)



add a note add a note User Contributed Notes
error_get_last
There are no user contributed notes for this page.

error_log" width="11" height="7"/> <debug_print_backtrace
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites