PHP: Classes to use functions from each other?
Posted
by Martti Laine
on Stack Overflow
See other posts from Stack Overflow
or by Martti Laine
Published on 2010-04-07T13:21:43Z
Indexed on
2010/04/07
13:23 UTC
Read the original article
Hit count: 162
Hello
I've been into this problem for a while already, and have asked some questions about it here Stackoverflow. I've got some advice, but I just can't understand it. Could someone provide me an example of classes working smoothly together.
I have 3 (maybe more) classes:
- mysql
- user
- alerts
As I said, could someone provide an example, so these classes could use functions from each other class, e.g. user could use mysql's functions. I'm asking for an simple example, for learning-purposes.
And please, no google-suggestions or links to other questions. I've tried to search this for a while already. No success, though.
Martti Laine
© Stack Overflow or respective owner