PHP4 User Manual: function-fwrite

Source: Internet
Author: User
Manual H1 & gt; (PHP3, PHP4 & gt; 4.0.0) fwrite -- Binary file write description & nbsp; intfwrite (intfp, stringstring [, intlength]) & nbsp; fwrite () write the string content to the file stream specified by fp. If length is given, the manual after writing the bytes specified by length

H1>

(PHP 3, PHP 4> = 4.0.0)

Fwrite -- Binary file writing

Description

Int fwrite (int fp, string [, int length])

Fwrite () writes the string content to the file stream specified by fp. If length is given, it will end after writing the bytes specified by length.

Note: If the length parameter is given, the magic_quotes_runtime configuration option will be ignored, and "\" in the string will not be deleted.

Note: In some systems, binary and text files (I. e. Windows) are distinguished. this file must be opened using the fopen () mode with the 'B' parameter.

See fread (), fopen (), fsockopen (), popen (), and fputs ().

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.