PHP 8.3.4 Released!

radius_cvt_string

(PECL radius >= 1.1.0)

radius_cvt_string生データを文字列に変換する

説明

radius_cvt_string(string $data): string

生データを文字列に変換します。

パラメータ

data

入力値

戻り値

データから取得した文字列を返します。

例1 radius_cvt_string() の例

<?php
while ($resa = radius_get_attr($res)) {

if (!
is_array($resa)) {
printf ("属性取得時のエラー: %s\n", radius_strerror($res));
exit;
}

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

switch (
$attr) {

case
RADIUS_FILTER_ID:
$id = radius_cvt_string($data);
echo
"フィルタ ID: $id<br>\n";
break;
}
}
?>

参考

add a note

User Contributed Notes

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