com doc/ru: Deleted duplication of example: language/types/object.xml
| From: | Sergey Panteleev | Date: | Tue, 16 Feb 2021 16:16:41 +0000 |
| Subject: | com doc/ru: Deleted duplication of example: language/types/object.xml | ||
| Groups: | php.doc.ru | ||
| Request: | Send a blank email to doc-ru+get-8803@lists.php.net to get a copy of this message | ||
Commit: b7b8735e16f99971c8ffa6c139ff2c48bf9fc3d5
Author: Alex Erohin <alexandererohin@yandex.ru> Tue, 16 Feb 2021 19:09:11 +0300
Committer: Sergey Panteleev <sergey@php.net> Tue, 16 Feb 2021 19:16:41 +0300
Parents: efb8be26fbc8e730c03a35f4bfc78d05ea720179
Branches: master
Link: http://git.php.net/?p=doc/ru.git;a=commitdiff;h=b7b8735e16f99971c8ffa6c139ff2c48bf9fc3d5
Log:
Deleted duplication of example
Closes GH-20
Changed paths:
M language/types/object.xml
Diff:
diff --git a/language/types/object.xml b/language/types/object.xml
index a21f6501f..030e4dc82 100644
--- a/language/types/object.xml
+++ b/language/types/object.xml
@@ -58,14 +58,8 @@ $bar->do_foo();
<![CDATA[
<?php
$obj = (object) array('1' => 'foo');
-var_dump(isset($obj->{'1'})); // выводит 'bool(false)'
-var_dump(key($obj)); // выводит 'int(1)'
-
-$obj = (object) array('1' => 'foo');
var_dump(isset($obj->{'1'})); // выводит 'bool(true)', начиная
с PHP 7.2.0; 'bool(false)' ранее
var_dump(key($obj)); // выводит 'string(1) "1"', начиная с PHP
7.2.0; 'int(1)' ранее
-
-
?>
]]>
</programlisting>