mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Examples tidied.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@298710 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
0e42d1d3a6
commit
398011b458
2 changed files with 11 additions and 5 deletions
|
@ -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">
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue