Skip to content

Commit

Permalink
Update spl
Browse files Browse the repository at this point in the history
  • Loading branch information
mowangjuanzi committed Jan 13, 2025
1 parent befa5f1 commit 87a2032
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 32 deletions.
31 changes: 17 additions & 14 deletions reference/spl/arrayobject/append.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: d51166ca16fda8e766849505b84f9306ef443f71 Maintainer: zongbao Status: ready -->
<!-- EN-Revision: 52e3799c4caf4a0448eea45b97c4d76a2d59c95d Maintainer: zongbao Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<refentry xml:id="arrayobject.append" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -64,21 +64,24 @@ var_dump($arrayobj);
&example.outputs;
<screen>
<![CDATA[
object(ArrayObject)#1 (5) {
[0]=>
string(5) "first"
[1]=>
string(6) "second"
[2]=>
string(5) "third"
[3]=>
string(6) "fourth"
[4]=>
array(2) {
object(ArrayObject)#1 (1) {
["storage":"ArrayObject":private]=>
array(5) {
[0]=>
string(4) "five"
string(5) "first"
[1]=>
string(3) "six"
string(6) "second"
[2]=>
string(5) "third"
[3]=>
string(6) "fourth"
[4]=>
array(2) {
[0]=>
string(4) "five"
[1]=>
string(3) "six"
}
}
}
]]>
Expand Down
42 changes: 24 additions & 18 deletions reference/spl/arrayobject/offsetset.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: d51166ca16fda8e766849505b84f9306ef443f71 Maintainer: zongbao Status: ready -->
<!-- EN-Revision: 52e3799c4caf4a0448eea45b97c4d76a2d59c95d Maintainer: zongbao Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<refentry xml:id="arrayobject.offsetset" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -76,27 +76,33 @@ var_dump($arrayobj);
&example.outputs;
<screen>
<![CDATA[
object(ArrayObject)#1 (3) {
["property"]=>
string(11) "prop:public"
[4]=>
string(4) "four"
["group"]=>
array(2) {
object(ArrayObject)#1 (1) {
["storage":"ArrayObject":private]=>
object(Example)#2 (3) {
["property"]=>
string(11) "prop:public"
["4"]=>
string(4) "four"
["group"]=>
array(2) {
[0]=>
string(2) "g1"
[1]=>
string(2) "g2"
}
}
}
object(ArrayObject)#3 (1) {
["storage":"ArrayObject":private]=>
array(3) {
[0]=>
string(2) "g1"
string(4) "zero"
[1]=>
string(2) "g2"
string(3) "one"
[2]=>
string(4) "last"
}
}
object(ArrayObject)#3 (3) {
[0]=>
string(4) "zero"
[1]=>
string(3) "one"
[2]=>
string(4) "last"
}
]]>
</screen>
</example>
Expand Down

0 comments on commit 87a2032

Please sign in to comment.