cvs: phpdoc /en/reference/math/functions tan.xml
| From: | Hartmut Holzgraefe | Date: | Sun, 01 Apr 2007 08:18:15 +0000 |
| Subject: | cvs: phpdoc /en/reference/math/functions tan.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969375957@lists.php.net to get a copy of this message | ||
hholzgra Sun Apr 1 08:18:15 2007 UTC
Modified files:
/phpdoc/en/reference/math/functions tan.xml
Log:
copy/paste error corrected
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/math/functions/tan.xml?r1=1.9&r2=1.10&diff_format=u
Index: phpdoc/en/reference/math/functions/tan.xml
diff -u phpdoc/en/reference/math/functions/tan.xml:1.9
phpdoc/en/reference/math/functions/tan.xml:1.10
--- phpdoc/en/reference/math/functions/tan.xml:1.9 Sat Mar 31 19:18:23 2007
+++ phpdoc/en/reference/math/functions/tan.xml Sun Apr 1 08:18:15 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<refentry id="function.tan">
<refnamediv>
<refname>tan</refname>
@@ -15,20 +15,6 @@
<function>tan</function> returns the tangent of the
<parameter>arg</parameter>
parameter. The <parameter>arg</parameter> parameter is in radians.
</para>
- <para>
- <example>
- <title><function>tan</function> example</title>
- <programlisting role="php">
-<![CDATA[
-<?php
-
-echo tan(M_PI_4); // 1
-
-?>
-]]>
- </programlisting>
- </example>
- </para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
@@ -55,18 +41,13 @@
&reftitle.examples;
<para>
<example>
- <title><function>srand</function> example</title>
+ <title><function>tan</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
-// seed with microseconds
-function make_seed()
-{
- list($usec, $sec) = explode(' ', microtime());
- return (float) $sec + ((float) $usec * 100000);
-}
-srand(make_seed());
-$randval = rand();
+
+echo tan(M_PI_4); // 1
+
?>
]]>
</programlisting>