Home  >  Article  >  Backend Development  >  PHP4 User Manual: Function-fwrite_PHP Tutorial

PHP4 User Manual: Function-fwrite_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 17:22:121220browse

fwrite
(PHP 3, PHP 4 >= 4.0.0)fwrite -- Binary file writing description
int fwrite (int fp, string string [, int length])
fwrite() writes characters String the contents of string into the file stream specified by fp. If length is given, it will end after writing the bytes specified by length.
Note that if the length parameter is given, the website construction server script class PHPPHP User Manual fancyconfiguration.html#ini.magic-quotes-runtime>magic_quotes_runtime configuration option will be ignored, and the "" in the string will not be deleted. .
Note: On some systems where a distinction will be made between binary and text files (i.e. Windows), this file must be opened using mode fopen() with the b argument.
See fread(), fopen(), fsockopen(), popen(), and fputs().

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532346.htmlTechArticlefwrite (PHP 3, PHP 4 >= 4.0.0)fwrite -- Binary file write description int fwrite ( int fp, string string [, int length]) fwrite() writes the contents of string string to the file stream specified by fp...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn