<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc'; $TOC = array(); $TOC_DEPRECATED = array(); $PARENTS = array(); include_once dirname(__FILE__) ."/toc/class.imagick.inc"; $setup = array ( 'home' => array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'imagick.count.php', 1 => 'Imagick::count', 2 => 'Get the number of images', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.convolveimage.php', 1 => 'Imagick::convolveImage', ), 'next' => array ( 0 => 'imagick.cropimage.php', 1 => 'Imagick::cropImage', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/count.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?> <div id="imagick.count" class="refentry"> <div class="refnamediv"> <h1 class="refname">Imagick::count</h1> <p class="verinfo">(PECL imagick 3 >= 3.3.0)</p><p class="refpurpose"><span class="refname">Imagick::count</span> — <span class="dc-title">Get the number of images</span></p> </div> <div class="refsect1 description" id="refsect1-imagick.count-description"> <h3 class="title">说明</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><strong>Imagick::count</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$mode</code><span class="initializer"> = 0</span></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div> <p class="para rdfs-comment"> Returns the number of images. </p> </div> <div class="refsect1 parameters" id="refsect1-imagick.count-parameters"> <h3 class="title">参数</h3> <dl> <dt><code class="parameter">mode</code></dt> <dd> <p class="para"> An unused argument. Currently there is a non-particularly well defined feature in PHP where calling count() on a countable object might (or might not) require this method to accept a parameter. This parameter is here to be conformant with the interface of countable, even though the param is not used. </p> </dd> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-imagick.count-returnvalues"> <h3 class="title">返回值</h3> <p class="para"> Returns the number of images. </p> </div> </div><?php manual_footer($setup); ?>