What is the difference between static methods and instance methods in php? It is not the difference between methods, but is there any difference in performance ------ solution ------------------ it should be said that static methods will save more memory than instantiation ------ solution ------------------ open static words and do not call the database again and the server memory and CPU you said the instance is dynamic access. In this case, the database functions are read to generate the corresponding static code. What is the difference between static methods and instance methods in php?
There is no difference in usage, but in performance
------ Solution --------------------
Static methods save more memory than instantiation.
------ Solution --------------------
Do not call the database and server memory and CPU again when it is opened statically.
The instance you are talking about is dynamic access. In this case, the database functions are read to generate the corresponding static code.
In terms of search engines, static search is helpful, but the gap is not very large. it can only be said that static generation is recommended for static search.
------ Solution --------------------
Static and faster