this is just the silly notation used in the manual, obviously they use class->property and class::method without taking into account the actual language and its difference between access to the instance and class ( -> vs. :: :). see example 1 at http://www.php.net/manual/en/mysqli.real-connect.php
source share