cvs: phpdoc /en/reference/image/functions getimagesize.xml
| From: | Mehdi Achour | Date: | Mon, 04 Aug 2003 08:58:39 +0000 |
| Subject: | cvs: phpdoc /en/reference/image/functions getimagesize.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969355553@lists.php.net to get a copy of this message | ||
didou Mon Aug 4 04:58:39 2003 EDT
Modified files:
/phpdoc/en/reference/image/functions getimagesize.xml
Log:
improving example as suggested by Xuefer (fixing #24930)
Index: phpdoc/en/reference/image/functions/getimagesize.xml
diff -u phpdoc/en/reference/image/functions/getimagesize.xml:1.17
phpdoc/en/reference/image/functions/getimagesize.xml:1.18
--- phpdoc/en/reference/image/functions/getimagesize.xml:1.17 Tue Jul 22 16:28:16 2003
+++ phpdoc/en/reference/image/functions/getimagesize.xml Mon Aug 4 04:58:38 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.17 $ -->
+<!-- $Revision: 1.18 $ -->
<!-- splitted from ./en/functions/image.xml, last change in rev 1.36 -->
<refentry id="function.getimagesize">
<refnamediv>
@@ -49,8 +49,8 @@
<programlisting role="php">
<![CDATA[
<?php
-$size = getimagesize ("img/flag.jpg");
-echo "<img src=\"img/flag.jpg\" {$size[3]}>";
+list($width, $height, $type, $attr) = getimagesize("img/flag.jpg");
+echo "<img src=\"img/flag.jpg\" $attr>";
?>
]]>
</programlisting>