Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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', bybe, Christofian 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.

2  
You should try asking this in the stack overflow chat room, chat.stackexchange.com –  bybe Apr 1 '13 at 20:44
add comment

1 Answer 1

up vote 1 down vote accepted

It's the scope resolution operator:

http://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php

Example

<?php
class AClass {
    const THE_CONST_VALUE = 'The const value';
}

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

echo AClass::THE_CONST_VALUE;
?>
share|improve this answer
add comment

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