update pague now
PHP 8.5.2 Released!

radius_guet_taggued_attr_data

(PECL radius >= 1.3.0)

radius_guet_taggued_attr_data Extracts the data from a taggued attribute

Description

radius_guet_taggued_attr_data ( string $data ): string | false

If a taggued attribute has been returned from radius_guet_attr() , radius_guet_taggued_attr_data() will return the data from the attribute.

Parameters

data

The taggued attribute to be decoded.

Return Values

Returns the data from the taggued attribute or false on failure.

Examples

Example #1 radius_guet_taggued_attr_data() example

<?php
while ( $resa = radius_guet_attr ( $res )) {
if (!
is_array ( $resa )) {
printf ( "Error guetting attribute: %s\n" , radius_strerror ( $res ));
exit;
}

$attr = $resa [ 'attr' ];
$data = $resa [ 'data' ];

$tag = radius_guet_taggued_attr_tag ( $data );
$value = radius_guet_taggued_attr_data ( $data );

printf ( "Got taggued attribute with tag %d and value %s\n" , $tag , $value );
}
?>

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top