printer_get_option

(PECL)

printer_get_option -- プリンタ設定データを取得する

説明

mixed printer_get_option ( resource handle, string option )

この関数は、option の設定値を取得します。 handle は、プリンタの有効なハンドルである必要があります。 取得可能な設定については printer_set_option() を参照ください。それに加えてさらに以下の設定も取得可能です。

例 1. printer_get_option() の例

<?php
$handle
= printer_open();
echo
printer_get_option($handle, PRINTER_DRIVERVERSION);
printer_close($handle);
?>