function compare($a, $b) { if($a['punkty'] == $b['punkty']) { $this->get_winner($a['kid'], $b['kid']); // w tym miejscu bład } else { return ($a['punkty'] < $b['punkty']) ? 1 : -1; } }
natomiast w tej funkcji potrzebuję skorzystać z innej funkcji publicznej czyli: $this->get_winner($a['kid'], $b['kid']);
błąd Using $this when not in object context in
Dzięki z góry!