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>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to