PHP » PYTHON |
login |
register |
about
|
myFile = open("file.txt", "w") # open file in write mode myFile.write("Hello World!") # write to file myFile.close() # close file fwrite(PHP 4, PHP 5) fwrite — Binary-safe file write Description
int fwrite
( resource $handle
, string $string
[, int $length
] )
fwrite() writes the contents of string to the file stream pointed to by handle . Parameters
Return Valuesfwrite() returns the number of bytes written, or FALSE on error. Notes
Examples
Example #1 A simple fwrite() example
<?php
See Also
|
more
Recently updated
more
Most requested
|