GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  PHP
Go To First  |  Previous Question  |  Next Question 
 PHP  |  Question 70 of 74    Print  
PHP5 New Features
What are new features that are in added in PHP5?


  
Total Answers and Comments: 3 Last Update: July 31, 2009     Asked by: krr_r25 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: bhavsarpr
 
Following are new features added in PHP5

1. PHP 5 introduces the Standard PHP Library (SPL), which provides a number of ready-made classes and interfaces.
2. Access Modifiers are added in PHP5
3. PHP5 has built-in exception classes that makes it very easy to create your own customized exceptions through inheritance.
4. PHP 5 introduces the mysqli (MySQL Improved) extension with support for the features of MySQL databases versions 4.1 and higher. So use of prepare statements are allowed
5. PHP5 comes with PDO which is a common interface for different database systems is only made possible by the new object model.
6. SQLite is a database engine incorporated in php5 which can be used to develope faster, leaner and more versatile applications.
7. In PHP 5 all Extensible Markup Language (XML) support is provided by the libxml2 XML toolkit.
8. The reflection classes included in PHP 5 provide ways to introspect objects and reverse engineer code.
9. In addition to built-in classes, PHP 5 also offers built-in interfaces. Iterator is the most important, as a number of classes and interfaces are derived from this interface.
10. PHP 5 introduces a number of new "magic" methods. Magic methods begin with a double underscore, and this requires changing any user-defined methods or functions that use this naming convention.
11. The major change to PHP in version 5 relating to OOP is usually summed up by saying that objects are now passed by reference.

 Please let me know if anyone has anything to add in this.

Above answer was rated as good by the following members:
akaash19, tips4moin
June 07, 2009 20:01:58   #1  
sanjay.nayal Member Since: September 2007   Contribution: 3    

RE: PHP5 New Features
PHP5 has ZEND Engine Version 2
PHP5 support OOP Technology
It has better support for XML than previous version

 
Is this answer useful? Yes | No
June 09, 2009 03:32:15   #2  
bhavsarpr Member Since: June 2009   Contribution: 6    

RE: PHP5 New Features
Following are new features added in PHP5

1. PHP 5 introduces the Standard PHP Library (SPL) which provides a number of ready-made classes and interfaces.
2. Access Modifiers are added in PHP5
3. PHP5 has built-in exception classes that makes it very easy to create your own customized exceptions through inheritance.
4. PHP 5 introduces the mysqli (MySQL Improved) extension with support for the features of MySQL databases versions 4.1 and higher. So use of prepare statements are allowed
5. PHP5 comes with PDO which is a common interface for different database systems is only made possible by the new object model.
6. SQLite is a database engine incorporated in php5 which can be used to develope faster leaner and more versatile applications.
7. In PHP 5 all Extensible Markup Language (XML) support is provided by the libxml2 XML toolkit.
8. The reflection classes included in PHP 5 provide ways to introspect objects and reverse engineer code.
9. In addition to built-in classes PHP 5 also offers built-in interfaces. Iterator is the most important as a number of classes and interfaces are derived from this interface.
10. PHP 5 introduces a number of new "magic" methods. Magic methods begin with a double underscore and this requires changing any user-defined methods or functions that use this naming convention.
11. The major change to PHP in version 5 relating to OOP is usually summed up by saying that objects are now passed by reference.

Please let me know if anyone has anything to add in this.

 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    
July 30, 2009 04:04:53   #3  
manoj.sinha84 Member Since: July 2009   Contribution: 1    

RE: PHP5 New Features
PHP5
----
Strong OOPS support
1) Data Encapsulation (public private protect visibility for member variables and methods)
2) Concepts like Abstraction Inheritance Reflections(reverse engineering APIs)
3) More Magic Functions like __construct __destruct __call __get __set
4)Type Hinting (as in C we can specify the data type the argument will be taking in function)
5) late static bindings etc.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape