mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
improving example as suggested by Xuefer (fixing #24930)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@136569 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
2a8022d90e
commit
b4165900e3
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue