A few questions about php4. If you are experienced with php4, please help answer them. I would be grateful._PHP Tutorial

WBOY
Release: 2016-07-13 10:51:48
Original
680 people have browsed it




A few questions about php4. If you are experienced with php4, please help answer them. I would be very grateful

First:

Does php4 support static methods and attributes?

Second:
Does php4 have no destructor? If not, how do you solve the problems where destructors must be used? For example, close the database.

Third:
If you write a program that is compatible with php4 and php5, what should you pay attention to?

Any help with the answer would be greatly appreciated! I don’t have time to install php4 and test it myself!

Let me answer




D8888D reply content------------------------------------------------- ----------
Read the manual.

There is a function that is triggered when the script execution ends.

D8888D reply content------------------------------------------------- ----------
If you want to close the database, as long as you don’t use pcconnect, it will close itself. You will have to write a function


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632546.htmlTechArticleA few questions about php4. If you are experienced with php4, please help answer them. I would be very grateful. First: php4 Does it support static methods and properties? Second: Does php4 have no destructor...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!