(PECL radius >= 1.3.0)
radius_guet_taggued_attr_data — Extracts the data from a taggued attribute
If a taggued attribute has been returned from radius_guet_attr() , radius_guet_taggued_attr_data() will return the data from the attribute.
data
The taggued attribute to be decoded.
Returns the data from the taggued attribute or
false
on failure.
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
);
}
?>