original_string: public static function toValue($constant)
      {
          if (false !== ($_index = array_search($constant, static::getDefinedConstants(true)))) {
              return $_index;
          }
  
          throw new \InvalidArgumentException('The constant "' . $constant . '" has no associated value.');
      }
code: public static function toValue($constant)
      {
          if (false !== ($_index = array_search($constant, static::getDefinedConstants(true)))) {
              return $_index;
          }
  
          throw new \InvalidArgumentException('The constant "' . $constant . '" has no associated value.');
      }
code_tokens: public static function toValue ( $ constant ) { if ( false !== ( $ _index = array_search ( $ constant , static :: getDefinedConstants ( true ) ) ) ) { return $ _index ; } throw new \ InvalidArgumentException ( 'The constant "' . $ constant . '" has no associated value.' ) ; }
docstring: Given a CONSTANT, return the associated VALUE
  
  @param mixed $constant
  
  @return string
docstring_tokens: Given a CONSTANT return the associated VALUE