original_string: public function putAttribute($attrib, $value, $type = null)
      {
          if ($type == null) {
              $type = gettype($value);
          }
  
          switch ($type) {
              case 'integer':
              case 'double':
                  return radius_put_int($this->res, $attrib, $value);
  
              case 'addr':
                  return radius_put_addr($this->res, $attrib, $value);
  
              case 'string':
              default:
                  return radius_put_attr($this->res, $attrib, $value);
          }
  
      }
code: public function putAttribute($attrib, $value, $type = null)
      {
          if ($type == null) {
              $type = gettype($value);
          }
  
          switch ($type) {
              case 'integer':
              case 'double':
                  return radius_put_int($this->res, $attrib, $value);
  
              case 'addr':
                  return radius_put_addr($this->res, $attrib, $value);
  
              case 'string':
              default:
                  return radius_put_attr($this->res, $attrib, $value);
          }
  
      }
code_tokens: public function putAttribute ( $ attrib , $ value , $ type = null ) { if ( $ type == null ) { $ type = gettype ( $ value ) ; } switch ( $ type ) { case 'integer' : case 'double' : return radius_put_int ( $ this -> res , $ attrib , $ value ) ; case 'addr' : return radius_put_addr ( $ this -> res , $ attrib , $ value ) ; case 'string' : default : return radius_put_attr ( $ this -> res , $ attrib , $ value ) ; } }
docstring: Puts an attribute.
  
  @param  integer $attrib       Attribute-number
  @param  mixed   $port         Attribute-value
  @param  type    $type         Attribute-type
  @return bool  true on success, false on error
docstring_tokens: Puts an attribute .