|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
PHP
DETAILS
Question: What are new features that are in added in PHP5?
Answer: 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.
|
|
|
Category |
PHP Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 6600 users |
Added on |
8/25/2014 |
Views |
68962 |
Rate it! |
|
|
Question:
What are new features that are in added in PHP5?
Answer:
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. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How to prevent form hijacking in PHP?
|
View Answer
|
|
How can we submit a form without a submit button?
|
View Answer
|
|
How to add multiple categories through PHP?
|
View Answer
|
|
What do you need to do to improve the performance (speedy execution) for the script you have written?
|
View Answer
|
|
How do you capture audio/video in PHP?
|
View Answer
|
|
difference between require() and include()
|
View Answer
|
|
How to handle drop down box change event without refreshing page?
|
View Answer
|
|
What is the difference between Split and Explode
|
View Answer
|
|
What is the effect of large number of data stored in a database on a website ?
|
View Answer
|
|
How would you initialize your strings with single quotes or double quotes?
|
View Answer
|
|
Is Inheritance supported in PHP?
|
View Answer
|
|
What is the diffrence between Notify URL and Return URL?
|
View Answer
|
|
How to get the URL domain name in PHP?
|
View Answer
|
|
What is the use of obj_start()?
|
View Answer
|
|
What would be the differences between PHP and Java?
|
View Answer
|
|
What is htaccess?
|
View Answer
|
|
How do you create subdomains using PHP?
|
View Answer
|
|
What is the use of header() function in php?
|
View Answer
|
|
Where does the PHP session stored, either client side or server side?
|
View Answer
|
|
What is the difference between session_register and $_session?
|
View Answer
|