array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.dio-close.php', 1 => 'dio_close', 2 => 'Closes the file descriptor given by fd', ), 'up' => array ( 0 => 'ref.dio.php', 1 => 'Функції Direct IO', ), 'prev' => array ( 0 => 'ref.dio.php', 1 => 'Функції Direct IO', ), 'next' => array ( 0 => 'function.dio-fcntl.php', 1 => 'dio_fcntl', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/dio/functions/dio-close.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

dio_close

(PHP 4 >= 4.2.0, PHP 5 < 5.1.0)

dio_closeCloses the file descriptor given by fd

Опис

dio_close(resource $fd): void

The function dio_close() closes the file descriptor fd.

Параметри

fd

The file descriptor returned by dio_open().

Значення, що повертаються

Не повертає значень.

Приклади

Приклад #1 Closing an open file descriptor

<?php
$fd
= dio_open('/dev/ttyS0', O_RDWR);

dio_close($fd);
?>

Прогляньте також