error_get_last()
Zwraca ostrzeżenia o ostatnim błędzie w kodzie. Zwraca tablice z informacjami o typie błędu (numer), wiadomoÅ›ci, pliku PHP oraz linijce kodu w którym zdażyÅ‚ siÄ™ ten błąd.
Kompatybilność: PHP5.
Listing
<?php
echo $a;
print_r(error_get_last());
?>
//zwróci np:
Array
(
[type] => 8
[message] => Undefined variable: a
[file] => C:\WWW\index.php
[line] => 2
)
echo $a;
print_r(error_get_last());
?>
//zwróci np:
Array
(
[type] => 8
[message] => Undefined variable: a
[file] => C:\WWW\index.php
[line] => 2
)
Dodano przez: divix
Ranga: Administrator serwisu Punktów: 38473
Ranga: Administrator serwisu Punktów: 38473
Komentarze użytkowników
:: Losowe artykuły

:: Wymiana linków

Modowe inspiracje |
Android Gry i Aplikacje |
ZaplanujTransport.pl: Przeprowadzki, transport, aukcje |
Logo dla firmy |
Change Tires - Car Weather Forecast Reminder |
Zend Framework 3. Developer's Guide |
IT Books Reviews and Programming: JS, JAVA, PHP, ANDROID, CSS |
Katalog roślin |
Programming articles of: JAVA, PHP, C++, Pyth, JavaScript and so on..