Last 5.3 release ever available: PHP 5.3.29 - 5.3 now EOL

printer_write

(PECL printer SVN)

printer_writeنوشتن داده به پرینتر

Description

bool printer_write ( resource $printer_handle , string $content )

نوشتن content مستقیما به پرینتر.

Parameters

printer_handle

printer_handle یک کنترل کننده صحیح پرینتر باشد.

content

داده برای نوشتن.

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example #1 مثال printer_write()

<?php
$handle 
printer_open();
printer_write($handle"Text to print");
printer_close($handle);
?>

add a note add a note

User Contributed Notes 1 note

up
3
jt at jtis dot de
9 years ago
To "statline" below:
Please read http://php.net/printer regarding the printer package _not_ being a part of PHP but a PECL extension and only working in a Windows environment.
You need to download and install the php_printer.dll!
To Top