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:
Philip Olson 2003-06-01 15:14:44 +00:00
parent 7912f8465b
commit ed3bbe4f62

View file

@ -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-&gt;scalar; // outputs 'ciao'
echo $obj->scalar; // outputs 'ciao'
?>
]]>
</programlisting>