PHP Interview Question and Answer for Experience

PHP: 2+ Year Experience of Interview Question and Answer



43.) What is the difference between echo and print statement?

Echo() can take multiple expressions,Print cannot take multiple expressions.

Print return true or false based on success or failure whereas echo just does what its told without letting you know whether or not it worked properly.

44.) What are the features and advantages of OBJECT ORIENTED PROGRAMMING?

One of the main advantages of OO programming is its ease of modification; objects can easily be modified and added to a system there by reducing maintenance costs. OO programming is also considered to be better at modeling the real world than is procedural programming. It allows for more complicated and flexible interactions. OO systems are also easier for non-technical personnel to understand and easier for them to participate in the maintenance and enhancement of a system because it appeals to natural human cognition patterns.

For some systems, an OO approach can speed development time since many objects are standard across systems and can be reused. Components that manage dates, shipping, shopping carts, etc. can be purchased and easily modified for a specific system. 


1 2 3 4 5 6 7 8