printer_get_option
(PECL printer SVN)
printer_get_option — プリンタ設定データを取得する
パラメータ
-
printer_handle -
printer_handleには、プリンタへの有効なハンドルを指定する必要があります。 -
option -
取得可能な設定については printer_set_option() を参照ください。それに加えてさらに以下の設定も取得可能です。
-
PRINTER_DEVICENAMEプリンタのデバイス名を返します。 -
PRINTER_DRIVERVERSIONプリンタドライバのバージョンを返します。
-
返り値
option の値を返します。
例
例1 printer_get_option() の例
<?php
$handle = printer_open();
echo printer_get_option($handle, PRINTER_DRIVERVERSION);
printer_close($handle);
?>