php8.5
Home/ Manual/ radius / functions/ radius_put_int

radius_put_int

PHP function Edit on GitHub ✎

(PECL radius >= 1.1.0)

Attaches an integer attribute

Description

radius_put_int(resource $radius_handle, int $type, int $value, int $options = 0, [int $tag]): bool

Attaches an integer attribute to the current RADIUS request.

Required

Parameters

value

The attribute value.

Return Values

Success

Changelog

VersionDescription
PECL radius 1.3.0The options and tag parameters were added.

Examples

radius_put_int() example

php
<?php
if (!radius_put_int($res, RAD_FRAMED_PROTOCOL, RAD_PPP)) {
   echo 'RadiusError:' . radius_strerror($res). "\n<br />";
   exit;
}
?>

See Also

Source: reference/radius/functions/radius-put-int.xml · from the official PHP manual (php/doc-en)