(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.
Notă:
O interpelare trebuie să fie creată cu ajutorul radius_create_request()înainte ca această funcție să poată fi apelată.
radius_handleResursa RADIUS.
typeTipul atributului.
valueThe attribute value. This value is expected by the underlying library to be null terminated, therefore this parameter is not binary safe.
optionsO mască de biți a
opțiunilor atributului. Opțiunile disponibile includ
RADIUS_OPTION_TAGGED și
RADIUS_OPTION_SALT.
tagEticheta atributului.
Acest parametru e ignorat dacă nu a fost stabilită opțiunea
RADIUS_OPTION_TAGGED.
   Întoarce valoarea TRUE în cazul
succesului sau FALSE în cazul eșecului.
  
| Versiune | Descriere | 
|---|---|
| PECL radius 1.3.0 | 
        The options and tag
        parameters were added.
        | 
      
Example #1 radius_put_string() example
<?php
if (!radius_put_string($res, RADIUS_USER_NAME, 'billy')) {
    echo 'RadiusError:' . radius_strerror($res). "\n<br />";
    exit;
}
?>