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>

Reply via email to