mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Typos as reported by Andrey Hristov.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@129733 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
7912f8465b
commit
ed3bbe4f62
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.111 $ -->
|
||||
<!-- $Revision: 1.112 $ -->
|
||||
<chapter id="language.types">
|
||||
<title>Types</title>
|
||||
|
||||
|
@ -1917,7 +1917,7 @@ $bar->do_foo();
|
|||
|
||||
<para>
|
||||
If an object is converted to an object, it is not modified. If a value
|
||||
of any other type is converted to an object, a new instace of the
|
||||
of any other type is converted to an object, a new instance of the
|
||||
<literal>stdClass</literal> built in class is created. If the value
|
||||
was null, the new instance will be empty. For any other value, a
|
||||
member variable named <literal>scalar</literal> will contain the
|
||||
|
@ -1927,7 +1927,7 @@ $bar->do_foo();
|
|||
<![CDATA[
|
||||
<?php
|
||||
$obj = (object) 'ciao';
|
||||
echo $obj->scalar; // outputs 'ciao'
|
||||
echo $obj->scalar; // outputs 'ciao'
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue