This is puzzling me: http://php.net/manual/en/dateinterval.format.php
public string DateInterval::format ( string $format )
The method is not static, yet it is given the double colons. What’s the reasoning here?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s nothing more than PHP authors’/developers’ way of writing a method name qualified by its class. It isn’t related to the static/dynamic nature of a method.
You’ll spot this notation in PHP’s errors as well. For example,
produces this error: