(PECL radius >= 1.1.0)
radius_put_string — Attaches a string attribute
$radius_handle
   , int $type      
   , string $value            
   [, int $options = 0
   [, int $tag
  ]] )Attaches a string attribute to the current RADIUS request. In general, radius_put_attr() is a more useful function for attaching string attributes, as it is binary safe.
Замечание:
Перед вызовом данной функции необходимо создать запрос с помощью функции radius_create_request().
radius_handleРесурс RADIUS.
typeТип атрибута.
valueThe attribute value. This value is expected by the underlying library to be null terminated, therefore this parameter is not binary safe.
optionsБитовая маска опций атрибута. В качестве значений можно использовать RADIUS_OPTION_TAGGED и RADIUS_OPTION_SALT.
tagТег атрибута. Данный параметр игнорируется, если не установлена опция RADIUS_OPTION_TAGGED.
   Возвращает TRUE в случае успешного завершения  или FALSE в случае возникновения ошибки.
  
| Версия | Описание | 
|---|---|
| PECL radius 1.3.0 | The optionsandtagparameters were added. | 
Пример #1 radius_put_string() example
<?php
if (!radius_put_string($res, RADIUS_USER_NAME, 'billy')) {
    echo 'RadiusError:' . radius_strerror($res). "\n<br />";
    exit;
}
?>