class test { function a() { return "dziala"; } function b( $zadziala ) { if( $zadziala = 1 ) { } } } $test = new test(); $test->a(); $test->b(1);
Taki testowy kod zwraca błąd - Call to undefined function a()
Jak powinna wyglądać poprawnie konstrukcje?
Dzięki za pomoc.