PRINTER_WRITE(3) 1 PRINTER_WRITE(3)
printer_write - Write data to the printer
SYNOPSIS
bool printer_write (resource $printer_handle, string $content)
DESCRIPTION
Writes $content directly to the printer.
PARAMETERS
o $printer_handle
-$printer_handle must be a valid printer handle.
o $content
- The data to be written.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
printer_write(3) example
<?php
$handle = printer_open();
printer_write($handle, "Text to print");
printer_close($handle);
?>
PHP Documentation Group PRINTER_WRITE(3)