reference/var/functions/is-scalar.xml
f3534a2ab0af4ed69c9a474e26210ef661324d39
...
...
@@ -12,16 +12,16 @@
12
12
&reftitle.description;
13
13
<methodsynopsis>
14
14
<type>bool</type><methodname>is_scalar</methodname>
15
-
<methodparam><type>mixed</type><parameter>var</parameter></methodparam>
15
+
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
18
Finds whether the given variable is a scalar.
19
19
</para>
20
20
<para>
21
-
Scalar variables are those containing an <type>integer</type>,
22
-
<type>float</type>, <type>string</type> or <type>boolean</type>.
23
-
Types <type>array</type>, <type>object</type> and <type>resource</type>
24
-
are not scalar.
21
+
Scalar variables are those containing an <type>int</type>,
22
+
<type>float</type>, <type>string</type> or <type>bool</type>.
23
+
Types <type>array</type>, <type>object</type>, <type>resource</type>
24
+
and <type>null</type> are not scalar.
25
25
</para>
26
26
<note>
27
27
<para>
...
...
@@ -43,7 +43,7 @@
43
43
<para>
44
44
<variablelist>
45
45
<varlistentry>
46
-
<term><parameter>var</parameter></term>
46
+
<term><parameter>value</parameter></term>
47
47
<listitem>
48
48
<para>
49
49
The variable being evaluated.
...
...
@@ -57,7 +57,7 @@
57
57
<refsect1 role="returnvalues">
58
58
&reftitle.returnvalues;
59
59
<para>
60
-
Returns &true; if <parameter>var</parameter> is a scalar, &false;
60
+
Returns &true; if <parameter>value</parameter> is a scalar, &false;
61
61
otherwise.
62
62
</para>
63
63
</refsect1>
...
...
@@ -123,7 +123,6 @@ array(3) {
123
123
</para>
124
124
</refsect1>
125
125
</refentry>
126
-

127
126
<!-- Keep this comment at the end of the file
128
127
Local variables:
129
128
mode: sgml
130
129