Added note that (object|array) => string conversion results in 'Array' or

'Object'.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@46908 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Torben Wilson 2001-05-08 23:34:05 +00:00
parent c9d236640d
commit 250fc13790

View file

@ -683,6 +683,13 @@ $foo = ( int ) $bar;
between certain types. For instance, the following should be
noted.
</para>
<para>
When casting or forcing a conversion from array to string, the
result will be the word <literal>Array</literal>. When casting or
forcing a conversion from object to string, the result will be
the word <literal>Object</literal>. In both cases a warning will
be issued.
</para>
<para>
When casting from a scalar or a string variable to an array, the
variable will become the first element of the array: