Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
1) To maintain the method naming standard and always be in line with the OOP architecture, even if the function is trifling;
2) Increase code portability from one version of PHP to another (who knows what bit depth of the variable microtime() will return tomorrow and whether it will be a familiar float).
3) The microtime() function in the method is called with a parameter, and this is already a specific use of the function - let's write a separate method for it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question