Which of the following experts told my younger brother what is the difference between the PHP5 series and the PHP4 series?

Source: Internet
Author: User
Who told me what is the difference between the PHP5 series and the PHP4 series? who told me what is the difference between the PHP & nbsp; 5 Series and PHP & nbsp; 4 Series? currently, I only find PHP & nbsp; does MYSQL be used as a built-in database in the 5 series ?, Who said it. In PHP6, the MYSQL function is canceled. Unified use of PDO ., Who told me what is the difference between the PHP 5 Series and the PHP 4 series,
Who told me what is the difference between the PHP 5 Series and the PHP 4 series? currently, I only find that the PHP 5 series does not use MYSQL as a built-in database. Is there any other difference?

------ Solution --------------------
Who said it. In PHP6, the MYSQL function is canceled. Use PDO.
------ Solution --------------------
PHP4 and PHP5 have different character encoding methods!
------ Solution --------------------
To axaw:
Php5 does not have the mysql _ series functions by default. to support it, you must add the -- with-mysql option during compilation.

To yiqing666:
Php4 and php5 have no difference in character encoding. Php6 only has built-in unicode support. An obvious example is that strlen ("Chinese") in php4 or php5 will get 4 (gbk) or 6 (UTF-8) results, while in php6, returns 2.


The biggest difference between php5 and php4 is in the object-oriented aspect. For more information, see The php Manual.

------ Solution --------------------
Ah ~ Everything was said by the upstairs ......

Even points ......

We recommend that you refer to the official php5 document, which details the differences between php4 and php5.
------ Solution --------------------
Didn't you add the -- with-mysql option when compiling PHP. Haha.

In the past two years, five developers have been used, and four developers seem to support them directly. Haha.

We need to develop our eyes. it's almost six times, and we are still using the ancient 4.

Our goal is to use PHP to write CNINUX
------ Solution --------------------
The biggest difference between php5 and php4 is in the object-oriented aspect.
------ Solution --------------------
Different driver engines
------ Solution --------------------
One is "4" and the other is "5"
------ Solution --------------------
Focusing on learning ......

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.