Is there any significant difference between Php 4 & Php 5 ? Like they are better in different scenarios or something ?

I am planning to use Php for web development with mySQL on an Win XP m/c and Apache server. Is there any pros & cons for choosing one over the other ?

Thanks

For the most part PHP5 introduces more features to the language while trying to support everything that was used in the past. Some functions behave differently on PHP5 although that is not the norm.

PHP5 features very powerful OOP that was not available in PHP4 (PHP4 has some OOP capabilities but they are considered crippled at best). It also runs faster.

For a thorough overview you can visit the Zend site:
http://www.zend.com/php5/articles/engine2-php5-changes.php?print=1

I personally use PHP4.3 because most of my servers still run that version. PHP4 is a very mature and usable language as it is. PHP5 is much better, but that doesn't say less of the powerful PHP4.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.