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