PEAR Manual
Prev |  | Next

# File::write()

File::write() -- writes bytes to a file

## Synopsis

    require_once 'File.php';

``mixed File::write` (string $filename, string $char [, string $mode = `FILE_MODE_APPEND` [, mixed $lock = `FALSE`]])`

## Description

## Parameter

## Return value

## Throws

## Note

This function can be called statically.

## See

## Example

Example 38-1. Using File::write()
    <?php
    require_once 'File.php';

    ?>

Prev | Home | Next
File::unlock() | Up | File::writeChar()