Examples tidied.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@298710 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Richard Quadling 2010-04-28 16:39:21 +00:00
parent 0e42d1d3a6
commit 398011b458
2 changed files with 11 additions and 5 deletions

View file

@ -82,13 +82,13 @@ echo $interval->format('%R%d days');
?>
]]>
</programlisting>
</example>
&examples.outputs;
<screen>
&examples.outputs;
<screen>
<![CDATA[
+2 days
]]>
</screen>
</screen>
</example>
</refsect1>
<refsect1 role="seealso">

View file

@ -159,10 +159,16 @@ echo $date->format('Y-m-d') . "\n";
<?php
$date = new DateTime();
$date->setISODate(2008, 14);
echo $date->format('n'); // 3
echo $date->format('n');
?>
]]>
</programlisting>
&examples.outputs;
<screen>
<![CDATA[
3
]]>
</screen>
</example>
</refsect1>