Added note on behavior of is_scalar() with regards to resource type values

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@50080 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Zak Greant 2001-06-24 05:11:35 +00:00
parent 05cb3a193f
commit 6e9bb647ff

View file

@ -745,6 +745,14 @@ show_var($proteins)
</programlisting>
</informalexample>
</para>
<note>
<para>
Note that the PHP resource type is not considered a scalar value.
Andi Gutmans states: "[Resources] are abstract datatypes which
happen to be in ID (integer) form ... people should [not] count
on it being an integer as this could change one day."
</para>
</note>
<note>
<para>
This function was added to the CVS code after the release of PHP
@ -1291,7 +1299,7 @@ foo();
&lt;?php
$a = array (1, 2, array ("a", "b", "c"));
var_dump ($a);
/* output:
array(3) {
[0]=>