Several questions about php4. If you have been familiar with php4, please help me to answer them. Thank you very much.
First:
Does php4 support static methods and attributes?
Second:
Does php4 have no destructor? If not, how do you solve some issues that must use destructor? For example, shut down the database.
Third:
If you write programs compatible with php4 and php5, what do you need to pay attention?
Thank you for your support! I have no time to install php4 and test it myself!
Let me answer
D8888D reply content -------------------------------------------------------
Read the manual.
There is a function that triggers the function at the end of script execution.
D8888D reply content -------------------------------------------------------
If you shut down the database, you don't need to use pcconnect, And it will shut down itself. If you don't have to write a function