T_PAAMAYIM_NEKUDOTAYIM

From: Date: Mon, 16 Dec 2002 18:42:11 +0000
Subject: T_PAAMAYIM_NEKUDOTAYIM
Groups: php.dev 
Request: Send a blank email to php-dev+get-92526@lists.php.net to get a copy of this message
Hi, Tell me if this is the wrong list to ask or if this has been answered somewhere else before. Thanks :) I am trying to make something like that: $myClassName = 'MyClass'; return $myClassName::myMethod($param1, $param2); And I get : Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM I found a way to get around this by using: return eval(("return $myClassName:: myMethod('$param1', '$param2');"); This works except when one of the parameters is an array. What is this ? Is it a bug or a feature and will it change in ZE2 ? Is there another way to get around this to let it accept arrays ? TIA, Bertrand Mansion Mamasam

« previous php.dev (#92526) next »