fix example. noticed by a user note

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@151656 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nuno Lopes 2004-02-17 21:51:54 +00:00
parent 354ed06212
commit 0c2f194b9e

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/image.xml, last change in rev 1.61 -->
<refentry id="function.image2wbmp">
<refnamediv>
@ -34,10 +34,11 @@
<![CDATA[
<?php
$file = 'php.jpg';
$file = 'php.png';
$image = imagecreatefrompng($file);
header('Content-type: ' . image_type_to_mime_type(IMAGETYPE_WBMP));
image2wbmp($file); // output the stream directly
image2wbmp($image); // output the stream directly
?>
]]>