Can you give real world OOP examples in PHP?
Asked
Active
Viewed 589 times
2
-
should be community wiki – ariefbayu Nov 24 '10 at 12:04
-
there is no more option for community wiki anymore, is there? – ilhan Nov 24 '10 at 12:05
-
3@ilhan that's correct, questions have to be made CW by a moderator – Pekka Nov 24 '10 at 12:06
-
Try to be a bit more specific please,...what type of examples do you want? – john mossel Nov 24 '10 at 12:07
-
`class no { function __construct() { printf("THE ANSWER IS %s", "no"); }; }` – Nov 24 '10 at 12:08
-
i don't know the exact benefits of oop. – ilhan Nov 24 '10 at 12:08
-
@oracle certified professional, that is not real world example :( – ilhan Nov 24 '10 at 12:09
-
@ilhan that is why "THE ANSWER IS no" – Nov 24 '10 at 12:10
-
@oracle certified professional, please don't comment if you don't know. – ilhan Nov 24 '10 at 12:11
-
@ilhan then I wouldn't be able to comment on anything – Nov 24 '10 at 12:15
-
1@Ilhan one of many http://stackoverflow.com/questions/2206387/learning-php-class/2206835#2206835 – Gordon Nov 24 '10 at 13:02
2 Answers
1
Take a look at the Yii framework - that's OOP, and uses MVC architecture.

alex
- 479,566
- 201
- 878
- 984

pauljwilliams
- 19,079
- 3
- 51
- 79