The double colon (::) is used to access static & overriden methods and members in PHP. The T_PAAMAYIM_NEKUDOTAYIM error is thrown when you're trying to access a non-static method or member with the scope resolution operator.
<?php
class Test
{
public static function StaticMethod()
{
return null;
}
public function NormalMethod()
{
return null;
}
}
?>
<?php test::StaticMethod() ?>
<?php () ?>
<? $test::StaticMethod() ?>
(Foutmelding: Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/vaakamsteeg/domains/atlex.nl/public_html/dev/T_PAAMAYIM_NEKUDOTAYIM.php on line 22
More information: PHP documenten - Scope Resolution Operator.