PHP 8.3.4 Released!

radius_cvt_int

(PECL radius >= 1.1.0)

radius_cvt_int生データを整数に変換する

説明

radius_cvt_int(string $data): int

生データを整数に変換します。

パラメータ

data

入力値

戻り値

データから取得した整数を返します。

例1 radius_cvt_int() の例

<?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_FRAMED_MTU:
$mtu = radius_cvt_int($data);
echo
"MTU: $mtu<br>\n";
break;
}
}
?>

参考

add a note

User Contributed Notes

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