English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Is PHP like ASP.NET, which use an object oriented approach ?

2007-03-19 04:10:31 · 6 answers · asked by Anonymous in Computers & Internet Programming & Design

6 answers

It can be...check out this article...http://www.oracle.com/technology/pub/columns/hull_php2.html

2007-03-19 04:26:01 · answer #1 · answered by ucftrev 2 · 0 0

PHP has support for all the elements commonly associated with object-oriented programming. But it also has all the traits of traditional flow-driven programming.

http://en.wikipedia.org/wiki/Object_oriented_programming

http://en.wikipedia.org/wiki/Flow-driven_programming

Most developers do not use PHP as an object-oriented language. Most developers use PHP as a flow-driven language.

PHP intentionally supports both methodologies. Support for objects is greatly expanded in PHP 5.

2007-03-19 04:48:32 · answer #2 · answered by Anonymous · 0 0

Is it an object oriented programming language? Yes you can consider it somehow object oriented.

You can create objects & encapsulate your logic.

Is it like ASP.NET ? No because the ASP.NET have a different programming model and page life cycle.

You can check this
http://www.devarticles.com/c/a/PHP/Object-Oriented-Programming-in-PHP/

2007-03-19 08:50:07 · answer #3 · answered by Smutty 6 · 0 0

PHP is not purely an object oriented language. But you can develop applications based on object oriented programming.
For example, you can see PEAR packages in PHP.

2007-03-19 19:07:49 · answer #4 · answered by Atif Majid 3 · 0 0

originally not, it became semi-object oriented with version 4, then almost fully object oriented with version 5.

2007-03-19 13:54:09 · answer #5 · answered by rice kid 4 · 0 0

yes it is.

http://en.wikipedia.org/wiki/Php

According to Wikipedia it is !

2007-03-19 04:21:37 · answer #6 · answered by jools 3 · 0 0

fedest.com, questions and answers