Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working with NetSuite's PHP toolkit and i get the error T_PAAMAYIM_NEKUDOTAYIM from this line

$classname = get_class($object);
$typesmap = $classname::$paramtypesmap;  <---

I just want to know what's the '::' for, since is from there that i've seen the error is coming from.

All my dev work is on hold for this error and it has been almost a week.

My guess, it takes the value from $paramtypesmap to $typesmap depending the class name, which may seem kind of obvious, but the point is that i've never seen the '::' been used before.

share|improve this question

closed as off topic by Su', Simon Hayter, Hamlet Apr 1 '13 at 21:47

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

You should try asking this in the stack overflow chat room, chat.stackexchange.com – Simon Hayter Apr 1 '13 at 20:44
up vote 1 down vote accepted

It's the scope resolution operator:



class AClass {
    const THE_CONST_VALUE = 'The const value';

$classname = 'AClass';
echo $classname::THE_CONST_VALUE; // As of PHP 5.3.0

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.