I saw hooks in the Kohana PHP structure, and they work as some kind of callback function called by a specific event (Kohana events, which are a kind of method overload).
I saw hooks in Wordpress, and I don’t know what it is and how to use it (just saw them yesterday).
I am looking for events in "unstructured" php, I can not find them.
Are interceptors used only in an event-based environment? What are they anyway (in general, not only in PHP)? Why are they good, if not in an event-based environment.
, , ; , - , -, , . PHP , , /. , . , fooobar.com/questions/1735883/....
, PHP , , , . , , . ( , , ..)
, , WordPress, , , , CSS, CSS_DEFINITION_EVENT ( , WordPress, CSS HTML). . PHP (, ) , PHP ( PHP -), , , , PHP () .
PHP , . (, ), , - . 404.
Are you looking for them?
register_shutdown_function
set_error_handler
set_exception_handler
Source: https://habr.com/ru/post/1735882/More articles:Request only the first detailed record for each master record - sqlHow to get a position in a file (byte position) from a java scanner? - javaWhere to put xUnit tests to build F #? - tddD (Tango) can read and write ANSI files? - fileImplementing autocomplete in iPhone UITextField for contacts in the address book - iphoneApplication Model / MVC - event-handlingКогда следует рассмотреть представление первичного ключа...? - c#https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1735885/export-visio-macros-to-visio-com-add-in&usg=ALkJrhiDSrn7ZLRTV0sSSgt0UXo9IgkmIADataSet with many OR clauses - sqlDrupal: how to upgrade the current project website to dev version? - drupalAll Articles