mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
05cb3a193f
commit
6e9bb647ff
1 changed files with 9 additions and 1 deletions
|
@ -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();
|
|||
<?php
|
||||
$a = array (1, 2, array ("a", "b", "c"));
|
||||
var_dump ($a);
|
||||
|
||||
|
||||
/* output:
|
||||
array(3) {
|
||||
[0]=>
|
||||
|
|
Loading…
Reference in a new issue