mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
copy/paste error corrected
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@233060 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d462a14084
commit
59c94437db
1 changed files with 5 additions and 24 deletions
|
@ -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 @@ echo tan(M_PI_4); // 1
|
|||
&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>
|
||||
|
|
Loading…
Reference in a new issue