reference/var/functions/strval.xml
3f1e479bf2b07d00ba01eed248fb14b5db5e48ed
...
...
@@ -10,7 +10,7 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>string</type><methodname>strval</methodname>
13
-
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
13
+
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<simpara>
16
16
Get the string value of a variable.
...
...
@@ -29,14 +29,14 @@
29
29
<para>
30
30
<variablelist>
31
31
<varlistentry>
32
-
<term><parameter>var</parameter></term>
32
+
<term><parameter>value</parameter></term>
33
33
<listitem>
34
34
<para>
35
35
The variable that is being converted to a <type>string</type>.
36
36
</para>
37
37
<para>
38
-
<parameter>var</parameter> may be any scalar type or an object that
39
-
implements the <link linkend="object.tostring">__toString()</link>
38
+
<parameter>value</parameter> may be any scalar type, <type>null</type>,
39
+
or an <type>object</type> that implements the <link linkend="object.tostring">__toString()</link>
40
40
method. You cannot use <function>strval</function> on arrays or on
41
41
objects that do not implement the
42
42
<link linkend="object.tostring">__toString()</link> method.
...
...
@@ -50,7 +50,7 @@
50
50
<refsect1 role="returnvalues">
51
51
&reftitle.returnvalues;
52
52
<para>
53
-
The <type>string</type> value of <parameter>var</parameter>.
53
+
The <type>string</type> value of <parameter>value</parameter>.
54
54
</para>
55
55
</refsect1>
56
56

...
...
@@ -59,7 +59,7 @@
59
59
<para>
60
60
<example>
61
61
<title>
62
-
<function>strval</function> example using PHP 5's magic
62
+
<function>strval</function> example using PHP magic
63
63
<link linkend="object.tostring">__toString()</link> method.
64
64
</title>
65
65
<programlisting role="php">
...
...
@@ -99,7 +99,6 @@ echo strval(new StrValTest);
99
99
</refsect1>
100
100

101
101
</refentry>
102
-

103
102
<!-- Keep this comment at the end of the file
104
103
Local variables:
105
104
mode: sgml
106
105