Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Funkcje poza klasą dostępne w klasie
Gwozdyk
post
Post #1





Grupa: Zarejestrowani
Postów: 33
Pomógł: 0
Dołączył: 5.01.2008

Ostrzeżenie: (0%)
-----


Jak zrobić żeby funkcje umieszczone poza jakąkolwiek klasą były dostępne wewnątrz klas.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
SongoQ
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 923
Pomógł: 9
Dołączył: 25.10.2004
Skąd: Rzeszów - studia / Warszawa - praca

Ostrzeżenie: (0%)
-----


Mowisz o definicji metod??
Go to the top of the page
+Quote Post
mike
post
Post #3





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

Ostrzeżenie: (0%)
-----


Cytat(Gwozdyk @ 26.08.2008, 11:26:20 ) *
Jak zrobić żeby funkcje umieszczone poza jakąkolwiek klasą były dostępne wewnątrz klas.
Użyć ich w klasie (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) Funkcje są dostępne wszędzie.
Functions
Cytat
All functions and classes in PHP have the global scope - they can be called outside a function even if they were defined inside and vice versa.
Go to the top of the page
+Quote Post
Gwozdyk
post
Post #4





Grupa: Zarejestrowani
Postów: 33
Pomógł: 0
Dołączył: 5.01.2008

Ostrzeżenie: (0%)
-----


rzeczywiście
wcześniej próbowałem to zrobić tak po prostu i nie wychodziło, ale jednak dziala
dzieki
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 2.10.2025 - 17:12