RADIUS_GET_TAGGED_ATTR_TAG(3) 1 RADIUS_GET_TAGGED_ATTR_TAG(3)
radius_get_tagged_attr_tag - Extracts the tag from a tagged attribute
SYNOPSIS
integer radius_get_tagged_attr_tag (string $data)
DESCRIPTION
If a tagged attribute has been returned from radius_get_attr(3), radius_get_tagged_attr_data(3) will return the tag from the attribute.
PARAMETERS
o $data
- The tagged attribute to be decoded.
RETURN VALUES
Returns the tag from the tagged attribute or FALSE on failure.
EXAMPLES
Example #1
radius_get_tagged_attr_tag(3) example
<?php
while ($resa = radius_get_attr($res)) {
if (!is_array($resa)) {
printf ("Error getting attribute: %s
", radius_strerror($res));
exit;
}
$attr = $resa['attr'];
$data = $resa['data'];
$tag = radius_get_tagged_attr_tag($data);
$value = radius_get_tagged_attr_data($data);
printf("Got tagged attribute with tag %d and value %s
", $tag, $value);
}
?>
SEE ALSO
radius_get_attr(3), radius_get_tagged_attr_data(3).
PHP Documentation Group RADIUS_GET_TAGGED_ATTR_TAG(3)