Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Imagick::getNumberImagesImagick::getPackageName>
^ImagickLast updated: Mon, 26 Oct 2026

Imagick::getOption

(PECL imagick 2, PECL imagick 3)

Imagick::getOption — Returns a value associated with the specified key

Description

public function Imagick::getOption(string $key): string

Returns a value associated within the object for the specified key.

Parameters

key

The name of the option

Return Values

Returns a value associated with a wand and the specified key.

Errors/Exceptions

Throws ImagickException on error.


<Imagick::getNumberImagesImagick::getPackageName>
^ImagickLast updated: Mon, 26 Oct 2026