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); ?>
(PHP 4 >= 4.2.0, PHP 5 < 5.1.0)
dio_close — Closes the file descriptor given by fd
Не повертає значень.
Приклад #1 Closing an open file descriptor
<?php
$fd = dio_open('/dev/ttyS0', O_RDWR);
dio_close($fd);
?>