http://php.net/manual/en/mysqli.init.php
$ConnectionResource = mysqli::init();
The above code fails with:
Fatal error: Non-static method mysqli::init() cannot be called statically
How come?
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 just stupid notation used in the manual, obviously they use
class->propertyandclass::methodwithout regard for the actual language and its distinction between instance- and class-member access (->vs.::). see example 1 at http://www.php.net/manual/en/mysqli.real-connect.php