Warning: file_put_contents(): Only -1 of 55 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
radius_cvt_addr radius_cvt_string radius PHP Manual radius_cvt_int (PECL radius:1.1-1.2.5) — Converts raw data to integer Beschreibung int ( string $data ) Beispiele Example#1 radius_cvt_int() e...
Forum und email

radius_cvt_int

(PECL radius:1.1-1.2.5)

radius_cvt_int — Converts raw data to integer

Beschreibung

int radius_cvt_int ( string $data )

Beispiele

Example#1 radius_cvt_int() example

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

    if (!
is_array($resa)) {
        
printf ("Error getting attribute: %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;
    }
}
?>