mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
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:
parent
c9d236640d
commit
250fc13790
1 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue