DISABILITARE ADBLOCK

ADBlock sta bloccando alcuni contenuti del sito

ADBlock errore

Reference to static method in PHP?

FONTE PRINCIPALE: https://stackoverflow.com/questions/192111

DOMANDA COMPLETA

SOLUZIONE

PHP handles callbacks as strings, not function pointers. The reason your first test works is because the PHP interpreter assumes foo1 as a string. If you have E_NOTICE level error enabled, you should see proof of that.

"Use of undefined constant foo1 - assumed 'foo1'"

You can't call static methods this way, unfortunately. The scope (class) is relevant so you need to use call_user_func instead.

UseReferences();

NON SEI SODDISFATTO ???

FONTI UTILI

StackOverflow