[PHP] [costanti] Elenco completo

nome descrizione breve
PHP_EOL Crea un ‘a capo’ multi-piattaforma
PHP_OS Restituisce informazioni sul server php
__DIR__ Restituisce il percorso della directory in cui si trova il file corrente
__FILE__ Restituisce il percorso (path) del file corrente
  1. __CLASS__ Contiene il nome della classe corrente.
  2. __FUNCTION__ Contiene il nome della funzione che stiamo utilizzando.
  3. __LINE__ Contiene il numero di riga corrente.
  4. __METHOD__ Contiene il nome del metodo corrente.
  5. __NAMESPACE__Contiene il nome del namespace corrente.
  6. __TRAIT__Contiene il nome del trait corrente.
  7. Costanti di calendario predefinite

  8. CAL_GREGORIAN
  9. CAL_JULIAN
  10. CAL_JEWISH
  11. CAL_FRENCH
  12. CAL_NUM_CALS
  13. CAL_DOW_DAYNO
  14. CAL_DOW_SHORT
  15. CAL_DOW_LONG
  16. CAL_MONTH_GREGORIAN_SHORT
  17. CAL_MONTH_GREGORIAN_LONG
  18. CAL_MONTH_JULIAN_SHORT
  19. CAL_MONTH_JULIAN_LONG
  20. CAL_MONTH_JEWISH
  21. CAL_MONTH_FRENCH
  22. CAL_EASTER_DEFAULT
  23. CAL_EASTER_ROMAN
  24. CAL_EASTER_ALWAYS_GREGORIAN
  25. CAL_EASTER_ALWAYS_JULIAN
  26. CAL_JEWISH_ADD_ALAFIM_GERESH
  27. CAL_JEWISH_ADD_ALAFIM
  28. CAL_JEWISH_ADD_GERESHAYIM
  29. Costanti di errore e log predefinite

  30. E_ERROR (1) Fatal run-time errors. These indicate errors that can not be recovered from, such as a memory allocation problem. Execution of the script is halted.
  31. E_WARNING (2) Run-time warnings (non-fatal errors). Execution of the script is not halted.
  32. E_PARSE (4) Compile-time parse errors. Parse errors should only be generated by the parser.
  33. E_NOTICE (8) Run-time notices. Indicate that the script encountered something that could indicate an error, but could also happen in the normal course of running a script.
  34. E_CORE_ERROR (16) Fatal errors that occur during PHP’s initial startup. This is like an E_ERROR, except it is generated by the core of PHP.
  35. E_CORE_WARNING (32) Warnings (non-fatal errors) that occur during PHP’s initial startup. This is like an E_WARNING, except it is generated by the core of PHP.
  36. E_COMPILE_ERROR (64) Fatal compile-time errors. This is like an E_ERROR, except it is generated by the Zend Scripting Engine.
  37. E_COMPILE_WARNING (128) Compile-time warnings (non-fatal errors). This is like an E_WARNING, except it is generated by the Zend Scripting Engine.
  38. E_USER_ERROR (256) User-generated error message. This is like an E_ERROR, except it is generated in PHP code by using the PHP function trigger_error().
  39. E_USER_WARNING (512) User-generated warning message. This is like an E_WARNING, except it is generated in PHP code by using the PHP function trigger_error().
  40. E_USER_NOTICE (1024) User-generated notice message. This is like an E_NOTICE, except it is generated in PHP code by using the PHP function trigger_error().
  41. E_STRICT (2048) Enable to have PHP suggest changes to your code which will ensure the best interoperability and forward compatibility of your code. Since PHP 5 but not included in E_ALL until PHP 5.4.0
  42. E_RECOVERABLE_ERROR (4096) Catchable fatal error. It indicates that a probably dangerous error occurred, but did not leave the Engine in an unstable state. If the error is not caught by a user defined handle (see also set_error_handler()), the application aborts as it was an E_ERROR. Since PHP 5.2.0
  43. E_DEPRECATED (8192) Run-time notices. Enable this to receive warnings about code that will not work in future versions. Since PHP 5.3.0
  44. E_USER_DEPRECATED (16384) User-generated warning message. This is like an E_DEPRECATED, except it is generated in PHP code by using the PHP function trigger_error(). Since PHP 5.3.0
  45. E_ALL (32767) All errors and warnings, as supported, except of level E_STRICT prior to PHP 5.4.0.
costanti php, php

Related Articles

0 Comment