reference/hash/functions/hash-final.xml
20dcfbb0dd7150cbe5dfd7903a3001229295c549
...
...
@@ -10,7 +10,7 @@
10
10
<methodsynopsis>
11
11
<type>string</type><methodname>hash_final</methodname>
12
12
<methodparam><type>HashContext</type><parameter>context</parameter></methodparam>
13
-
<methodparam choice="opt"><type>bool</type><parameter>raw_output</parameter><initializer>&false;</initializer></methodparam>
13
+
<methodparam choice="opt"><type>bool</type><parameter>binary</parameter><initializer>&false;</initializer></methodparam>
14
14
</methodsynopsis>
15
15

16
16
</refsect1>
...
...
@@ -27,7 +27,7 @@
27
27
</listitem>
28
28
</varlistentry>
29
29
<varlistentry>
30
-
<term><parameter>raw_output</parameter></term>
30
+
<term><parameter>binary</parameter></term>
31
31
<listitem>
32
32
<para>
33
33
When set to &true;, outputs raw binary data.
...
...
@@ -43,7 +43,7 @@
43
43
&reftitle.returnvalues;
44
44
<para>
45
45
Returns a string containing the calculated message digest as lowercase hexits
46
-
unless <parameter>raw_output</parameter> is set to true in which case the raw
46
+
unless <parameter>binary</parameter> is set to true in which case the raw
47
47
binary representation of the message digest is returned.
48
48
</para>
49
49
</refsect1>
...
...
@@ -72,30 +72,6 @@
72
72
</para>
73
73
</refsect1>
74
74

75
-
<refsect1 role="examples">
76
-
&reftitle.examples;
77
-
<para>
78
-
<example>
79
-
<title><function>hash_final</function> example</title>
80
-
<programlisting role="php">
81
-
<![CDATA[
82
-
<?php
83
-
$ctx = hash_init('sha1');
84
-
hash_update($ctx, 'The quick brown fox jumped over the lazy dog.');
85
-
echo hash_final($ctx);
86
-
?>
87
-
]]>
88
-
</programlisting>
89
-
&example.outputs;
90
-
<screen>
91
-
<![CDATA[
92
-
c0854fb9fb03c41cce3802cb0d220529e6eef94e
93
-
]]>
94
-
</screen>
95
-
</example>
96
-
</para>
97
-
</refsect1>
98
-

99
75
<refsect1 role="seealso">
100
76
&reftitle.seealso;
101
77
<para>
...
...
@@ -109,7 +85,6 @@ c0854fb9fb03c41cce3802cb0d220529e6eef94e
109
85
</refsect1>
110
86

111
87
</refentry>
112
-

113
88
<!-- Keep this comment at the end of the file
114
89
Local variables:
115
90
mode: sgml
116
91