cvs: phpdoc-zh /reference/math/functions cos.xml
| From: | Xiao shengwen | Date: | Wed, 03 Dec 2003 03:18:52 +0000 |
| Subject: | cvs: phpdoc-zh /reference/math/functions cos.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-1786@lists.php.net to get a copy of this message | ||
yincheng Tue Dec 2 22:18:52 2003 EDT
Modified files:
/phpdoc-zh/reference/math/functions cos.xml
Log:
add a example
Index: phpdoc-zh/reference/math/functions/cos.xml
diff -u phpdoc-zh/reference/math/functions/cos.xml:1.3
phpdoc-zh/reference/math/functions/cos.xml:1.4
--- phpdoc-zh/reference/math/functions/cos.xml:1.3 Sun Mar 9 04:37:35 2003
+++ phpdoc-zh/reference/math/functions/cos.xml Tue Dec 2 22:18:52 2003
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="gb2312"?>
-<!-- $Revision: 1.3 $ -->
-<!-- $Author: dallas $ -->
+<!-- $Revision: 1.4 $ -->
+<!-- $Author: yincheng $ -->
<!-- EN-Revision: 1.3 Maintainer: yincheng Status: ready -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.cos">
@@ -19,6 +19,20 @@
µÄÓàÏÒÖµ¡£²ÎÊý <parameter>arg</parameter>
µÄµ¥Î»Îª»¡¶È¡£
</para>
<para>
+ <example>
+ <title><function>cos</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+echo cos(M_PI); // -1
+
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ <para>
²Î¼û <function>acos</function>,
<function>sin</function>£¬<function>tan</function>
ºÍ <function>deg2rad</function>¡£
</para>