cvs: phpdoc-fr /reference/image/functions getimagesize.xml

From: Date: Mon, 04 Aug 2003 09:01:56 +0000
Subject: cvs: phpdoc-fr /reference/image/functions getimagesize.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-678@lists.php.net to get a copy of this message
didou Mon Aug 4 05:01:56 2003 EDT Modified files: /phpdoc-fr/reference/image/functions getimagesize.xml Log: improving example as suggested by Xuefer (#24930) Index: phpdoc-fr/reference/image/functions/getimagesize.xml diff -u phpdoc-fr/reference/image/functions/getimagesize.xml:1.5 phpdoc-fr/reference/image/functions/getimagesize.xml:1.6 --- phpdoc-fr/reference/image/functions/getimagesize.xml:1.5 Fri Jun 27 12:27:38 2003 +++ phpdoc-fr/reference/image/functions/getimagesize.xml Mon Aug 4 05:01:56 2003 @@ -53,11 +53,8 @@ <programlisting role="php"> <![CDATA[ <?php - $size = getimagesize("img/flag.jpg"); -?> -<IMG SRC="img/flag.jpg" -<?php - echo $size[3]; +list($width, $height, $type, $attr) = getimagesize("img/flag.jpg"); +echo "<img src=\"img/flag.jpg\" $attr>"; ?>> ]]> </programlisting>

« previous php.doc.fr (#678) next »