Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 19892 программиста и 1621 робот. Сейчас ищут 1716 программистов ...
File::writeChar()
Вернуться к: File
File::writeChar()
File::writeChar() – writes a single character to a file
Synopsis
require_once 'File.php';
mixed File::writeChar ( string $filename , string $char , string $mode = FILE_MODE_APPEND , mixed $lock = false )
Parameter
Return value
Throws
Note
This function can be called statically.
See
Example
Using File::writeChar()
<?php
require_once 'File.php';
$e = File::write('test.txt', 'a');
if (PEAR::isError($e)) {
echo 'Could not write to file : ' . $e->getMessage();
} else {
echo "Successfully wrote to file test.txt\n";
}
?>
Вернуться к: File