Fixing example description and PHP Notice (Undefined variable: column)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336042 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jean-Sebastien Hedde 2015-03-06 12:37:37 +00:00
parent e91739280c
commit e46f07eb7d

View file

@ -80,7 +80,7 @@
<example><!-- {{{ -->
<title><methodname>Imagick::getPixelRegionIterator</methodname> example</title>
<para>
Iterate over the pixels in the top left of the image, changing every other one to be transparent black.
Iterate over the pixels in the top left of the image, changing them to be black.
</para>
<programlisting role="php">
<![CDATA[
@ -90,10 +90,8 @@ $areaIterator = $im->getPixelRegionIterator(0, 0, 10, 10);
foreach ($areaIterator as $rowIterator) {
foreach ($rowIterator as $pixel) {
if ($column % 2) {
// Paint every second pixel black
// Paint every pixel black
$pixel->setColor("rgba(0, 0, 0, 0)");
}
}
$areaIterator->syncIterator();
}