cvs: phpdoc /en/reference/imagick/imagick getimageproperties.xml

From: Date: Sat, 06 Oct 2007 16:09:35 +0000
Subject: cvs: phpdoc /en/reference/imagick/imagick getimageproperties.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-162@lists.php.net to get a copy of this message
mkoppanen Sat Oct 6 16:09:35 2007 UTC Modified files: /phpdoc/en/reference/imagick/imagick getimageproperties.xml Log: Added an example http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/imagick/imagick/getimageproperties.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/imagick/imagick/getimageproperties.xml diff -u phpdoc/en/reference/imagick/imagick/getimageproperties.xml:1.1 phpdoc/en/reference/imagick/imagick/getimageproperties.xml:1.2 --- phpdoc/en/reference/imagick/imagick/getimageproperties.xml:1.1 Wed Sep 19 11:11:14 2007 +++ phpdoc/en/reference/imagick/imagick/getimageproperties.xml Sat Oct 6 16:09:35 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.imagick-getimageproperties"> <refnamediv> <refname>Imagick::getImageProperties</refname> @@ -86,36 +86,37 @@ </refsect1> --> - <!-- Use when examples exist <refsect1 role="examples"> &reftitle.examples; <para> <example> - <title>A <function>Imagick::getImageProperties</function> example</title> + <title>Using <function>Imagick::getImageProperties</function>:</title> <para> - Any text that describes the purpose of the example, or - what goes on in the example should go here (inside the - <example> tag, not out + An example of extracting EXIF information. </para> <programlisting role="php"> <![CDATA[ <?php -if ($anexample === true) { - echo 'Use the PEAR Coding Standards'; + +/* Create the object */ +$im = new imagick("/path/to/example.jpg"); + +/* Get the EXIF information */ +$exifArray = $im->getImageProperties("exif:*"); + +/* Loop trough the exif properties */ +foreach ($exifArray as $name => $property) +{ + echo "{$name} => {$property}<br />\n"; } + ?> ]]> </programlisting> - &example.outputs; - <screen> -<![CDATA[ -Use the PEAR Coding Standards -]]> - </screen> </example> </para> </refsect1> - --> + <!-- Use when adding See Also links <refsect1 role="seealso">

« previous php.doc.cvs (#162) next »