IT Community - Software Programming, Web Development and Technical Support

features of PHP5 - I

This is a discussion on features of PHP5 - I within the PHP Programming forums, part of the Web Development category; 1. Some new Key words Given Below, are added in PHP5.0 • Exception • Final • Interface • Implements • Abstract • Public • Private • Protected • ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-16-2007, 11:53 PM
vijayanand vijayanand is offline
D-Web Analyst
 
Join Date: Feb 2007
Posts: 293
vijayanand is on a distinguished road
Default features of PHP5 - I

1. Some new Key words Given Below, are added in PHP5.0
• Exception
• Final
• Interface
• Implements
• Abstract
• Public
• Private
• Protected
• Clone
• Try
• Catch
• Throw
• Php_User_Filter

2. In Strrpos() and Strripos(), We can use the entire string as the needle.

3. When calling string offsets while we there is only string without offset, it causes E_ERROR instead of E_WARNING where it happens in older versions.

4. The array_merge() was to accept only arrays rather than in older versions. If a non-array variable is passed, a E_WARNING will be shown for every such parameter.

5. The T_ML_COMMENT constant is no longer defined by the Tokenizer extension. If error_reporting is set to E_ALL, PHP will generate a notice. Although the T_ML_COMMENT was never used at all, it was defined in PHP 4. In both PHP 4 and PHP 5 // and /* */ are resolved as the T_COMMENT constant.

6. The PHPDoc style comments /** */, are parsed by PHP, are recognized as T_DOC_COMMENT.

7. When using the interfaces, classes must be declared before we define the class in Php5. But we are not using the interface in older version.
__________________

J.Vijayanand
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Php5 venkatbi PHP Programming 29 02-13-2008 03:14 AM
Difference between php 4 and php5? Sabari PHP Programming 57 09-04-2007 05:52 AM
features of PHP5 - II vijayanand PHP Programming 0 07-16-2007 11:54 PM
Python features or derived its features? vigneshgets Python 1 07-12-2007 12:21 AM
features or derived its features? vigneshgets Python 0 05-30-2007 05:15 AM


All times are GMT -7. The time now is 06:21 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0