From ca4f295021515c8852ce2972d571c887971bf3d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Sat, 1 Aug 2026 19:23:44 +0900 Subject: [PATCH] =?UTF-8?q?doc-en=20=E3=81=A8=E5=90=8C=E6=9C=9F=E3=81=97?= =?UTF-8?q?=E3=80=81=E3=82=B3=E3=83=BC=E3=83=89=E4=BE=8B=E3=81=AE=E5=AE=9F?= =?UTF-8?q?=E8=A1=8C=E7=B5=90=E6=9E=9C=E3=82=92=E5=AE=9F=E9=9A=9B=E3=81=AE?= =?UTF-8?q?=E5=87=BA=E5=8A=9B=E3=81=AB=E4=BF=AE=E6=AD=A3=EF=BC=8845?= =?UTF-8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=83=BB=E8=A8=B3=E6=96=87?= =?UTF-8?q?=E3=81=AE=E5=A4=89=E6=9B=B4=E3=81=AA=E3=81=97=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 概要 php/doc-en@17c2385178 (php/doc-en#5718) への追従。 変更はすべてコード例の実行結果(``)と、実行結果と食い違っていた コード(``)の修正で、訳文は変更していない。 個々の修正内容とその根拠は php/doc-en#5718 を参照。 ## 対象ファイル(45件) ### language(9件) - types/{array,callable}.xml - control-structures/{switch,foreach,goto,match}.xml - oop5/{basic,lazy-objects,overloading}.xml ### reference(36件) - strings/functions/{explode,rtrim,ltrim,trim,str-word-count,strtok,htmlentities}.xml - array/functions/{array-map,array-fill,array-udiff-assoc,array-unique,array-unshift,natsort}.xml - dom/dom/characterdata/{before,remove,replacewith}.xml - dom/dom/htmldocument/createfromstring.xml - dom/domdocument/append.xml - dom/domdocumentfragment/replacechildren.xml - dom/domelement/{before,getattributenames}.xml - dom/domnode/getlineno.xml - datetime/formats.xml - datetime/functions/{date-default-timezone-get,date-sun-info}.xml - reflection/reflectionclass/{getdefaultproperties,getdoccomment}.xml - reflection/reflectionconstant/getshortname.xml - simplexml/functions/simplexml-load-string.xml - simplexml/simplexmlelement/{children,getDocNamespaces}.xml - libxml/functions/{libxml-get-errors,libxml-set-external-entity-loader}.xml - pcre/functions/preg-replace.xml - uri/uri/rfc3986/uri/withfragment.xml - xmlwriter/xmlwriter/writecdata.xml ## その他 - `strings/functions/ltrim.xml` は EN-Revision の範囲に php/doc-en@46efd98053 (php/doc-en#5726) の `mb_ltrim` → `ltrim` も入るため併せて追従した。 - `strings/functions/strtok.xml` は追従対象の `` 内に ja 固有の余分な空行があったので除去した。 --- language/control-structures/foreach.xml | 4 ++- language/control-structures/goto.xml | 4 +-- language/control-structures/match.xml | 4 +-- language/control-structures/switch.xml | 7 ++-- language/oop5/basic.xml | 8 ++--- language/oop5/lazy-objects.xml | 6 ++-- language/oop5/overloading.xml | 5 ++- language/types/array.xml | 17 ++++++++-- language/types/callable.xml | 4 +-- reference/array/functions/array-fill.xml | 12 +++---- reference/array/functions/array-map.xml | 10 +++++- .../array/functions/array-udiff-assoc.xml | 9 +++--- reference/array/functions/array-unique.xml | 8 +++-- reference/array/functions/array-unshift.xml | 10 +++--- reference/array/functions/natsort.xml | 5 ++- reference/datetime/formats.xml | 4 +-- .../functions/date-default-timezone-get.xml | 5 +-- .../datetime/functions/date-sun-info.xml | 4 +-- reference/dom/dom/characterdata/before.xml | 4 +-- reference/dom/dom/characterdata/remove.xml | 4 +-- .../dom/dom/characterdata/replacewith.xml | 4 +-- .../dom/dom/htmldocument/createfromstring.xml | 4 +-- reference/dom/domdocument/append.xml | 3 +- .../domdocumentfragment/replacechildren.xml | 5 ++- reference/dom/domelement/before.xml | 3 +- .../dom/domelement/getattributenames.xml | 14 ++++---- reference/dom/domnode/getlineno.xml | 4 +-- .../libxml/functions/libxml-get-errors.xml | 6 ++-- .../libxml-set-external-entity-loader.xml | 14 +++++--- reference/pcre/functions/preg-replace.xml | 3 +- .../reflectionclass/getdefaultproperties.xml | 22 ++++++------- .../reflectionclass/getdoccomment.xml | 4 +-- .../reflectionconstant/getshortname.xml | 4 +-- .../functions/simplexml-load-string.xml | 13 ++++---- .../simplexml/simplexmlelement/children.xml | 5 ++- .../simplexmlelement/getDocNamespaces.xml | 6 ++-- reference/strings/functions/explode.xml | 32 ++++++++++--------- reference/strings/functions/htmlentities.xml | 4 +-- reference/strings/functions/ltrim.xml | 8 ++--- reference/strings/functions/rtrim.xml | 12 +++---- .../strings/functions/str-word-count.xml | 11 +++---- reference/strings/functions/strtok.xml | 7 ++-- reference/strings/functions/trim.xml | 6 ++-- .../uri/uri/rfc3986/uri/withfragment.xml | 3 +- reference/xmlwriter/xmlwriter/writecdata.xml | 5 +-- 45 files changed, 184 insertions(+), 152 deletions(-) diff --git a/language/control-structures/foreach.xml b/language/control-structures/foreach.xml index 7667bc3af18..9ee99e60fc3 100644 --- a/language/control-structures/foreach.xml +++ b/language/control-structures/foreach.xml @@ -1,6 +1,6 @@ - + foreach @@ -179,6 +179,8 @@ foreach ($array as list($a, $b)) { diff --git a/language/control-structures/goto.xml b/language/control-structures/goto.xml index 9ca4a0ebb38..460300caeec 100644 --- a/language/control-structures/goto.xml +++ b/language/control-structures/goto.xml @@ -1,6 +1,6 @@ - + @@ -96,7 +96,7 @@ for ($i = 0, $j = 50; $i < 100; $i++) { echo "$i = $i"; ]]> - &example.outputs; + &example.outputs.similar; - + match @@ -226,7 +226,7 @@ object(UnhandledMatchError)#1 (7) { ["file":protected]=> string(6) "script" ["line":protected]=> - int(6) + int(5) ["trace":"Error":private]=> array(0) { } diff --git a/language/control-structures/switch.xml b/language/control-structures/switch.xml index 8bf90d53723..f24976358d3 100644 --- a/language/control-structures/switch.xml +++ b/language/control-structures/switch.xml @@ -1,6 +1,6 @@ - + @@ -343,14 +343,15 @@ switch($beer) &example.outputs; diff --git a/language/oop5/basic.xml b/language/oop5/basic.xml index 15c4f7b26c9..b5fea20cf5a 100644 --- a/language/oop5/basic.xml +++ b/language/oop5/basic.xml @@ -1,6 +1,6 @@ - + @@ -334,8 +334,8 @@ var_dump($assigned); NULL NULL object(SimpleClass)#1 (1) { - ["var"]=> - string(30) "$assigned will have this value" + ["var"]=> + string(30) "$assigned will have this value" } ]]> @@ -541,7 +541,7 @@ $extended->displayVar(); diff --git a/language/oop5/lazy-objects.xml b/language/oop5/lazy-objects.xml index 93358a57cae..4ed0bf9ae47 100644 --- a/language/oop5/lazy-objects.xml +++ b/language/oop5/lazy-objects.xml @@ -1,6 +1,6 @@ - + レイジーオブジェクト @@ -82,8 +82,8 @@ var_dump($lazyObject->prop); -uninitialized(int) + ["prop"]=> + uninitialized(int) } string(7) "Example" Example::__construct diff --git a/language/oop5/overloading.xml b/language/oop5/overloading.xml index 71970d6497b..eceeccc29f0 100644 --- a/language/oop5/overloading.xml +++ b/language/oop5/overloading.xml @@ -1,6 +1,6 @@ - + @@ -234,8 +234,7 @@ Privates are visible inside the class, so __get() not used... Privates not visible outside of class, so __get() is used... Getting 'hidden' - -Notice: Undefined property via __get(): hidden in on line 70 in on line 29 +Notice: Undefined property via __get(): hidden in script on line 71 in script on line 27 ]]> diff --git a/language/types/array.xml b/language/types/array.xml index fe2b8d4a8d2..2d892d8a508 100644 --- a/language/types/array.xml +++ b/language/types/array.xml @@ -1,6 +1,6 @@ - + 配列 @@ -1149,7 +1149,7 @@ var_dump((array) new B()); ?> ]]> - &example.outputs; + &example.outputs.80; NULL } +]]> + + &example.outputs.81; + + + NULL + ["BA"]=> + NULL + ["AA"]=> + NULL +} ]]> diff --git a/language/types/callable.xml b/language/types/callable.xml index 474814b35fc..5086eec1495 100644 --- a/language/types/callable.xml +++ b/language/types/callable.xml @@ -1,6 +1,6 @@ - + コールバック / Callable @@ -279,7 +279,7 @@ Hello World! Hello World! Hello World! -Deprecated: Callables of the form ["B", "parent::who"] are deprecated in script on line 41 +Deprecated: Callables of the form ["B", "parent::who"] are deprecated in script on line 44 A Hello PHP! ]]> diff --git a/reference/array/functions/array-fill.xml b/reference/array/functions/array-fill.xml index b3808082b20..dd4c8a18787 100644 --- a/reference/array/functions/array-fill.xml +++ b/reference/array/functions/array-fill.xml @@ -1,6 +1,6 @@ - + array_fill @@ -130,11 +130,11 @@ print_r($a); banana - [6] => banana - [7] => banana - [8] => banana - [9] => banana + [5] => banana + [6] => banana + [7] => banana + [8] => banana + [9] => banana [10] => banana ) ]]> diff --git a/reference/array/functions/array-map.xml b/reference/array/functions/array-map.xml index 7107953d531..8bde48bf232 100644 --- a/reference/array/functions/array-map.xml +++ b/reference/array/functions/array-map.xml @@ -1,6 +1,6 @@ - + @@ -166,6 +166,14 @@ Array [3] => 8 [4] => 10 ) +Array +( + [0] => 2 + [1] => 4 + [2] => 6 + [3] => 8 + [4] => 10 +) ]]> diff --git a/reference/array/functions/array-udiff-assoc.xml b/reference/array/functions/array-udiff-assoc.xml index 096d2548778..15f2640e545 100644 --- a/reference/array/functions/array-udiff-assoc.xml +++ b/reference/array/functions/array-udiff-assoc.xml @@ -1,6 +1,6 @@ - + array_udiff_assoc @@ -107,18 +107,19 @@ Array ( [0.1] => cr Object ( - [priv_member:private] => 9 + [priv_member:cr:private] => 9 ) [0.5] => cr Object ( - [priv_member:private] => 12 + [priv_member:cr:private] => 12 ) [0] => cr Object ( - [priv_member:private] => 23 + [priv_member:cr:private] => 23 ) + ) ]]> diff --git a/reference/array/functions/array-unique.xml b/reference/array/functions/array-unique.xml index 6fca44fcae6..7c30b1613b3 100644 --- a/reference/array/functions/array-unique.xml +++ b/reference/array/functions/array-unique.xml @@ -1,6 +1,6 @@ - + @@ -160,8 +160,10 @@ var_dump($result); int(4) - [2] => string(1) "3" + [0]=> + int(4) + [2]=> + string(1) "3" } ]]> diff --git a/reference/array/functions/array-unshift.xml b/reference/array/functions/array-unshift.xml index c663f3b41bc..c8e0a831c00 100644 --- a/reference/array/functions/array-unshift.xml +++ b/reference/array/functions/array-unshift.xml @@ -1,6 +1,6 @@ - + array_unshift @@ -102,13 +102,13 @@ var_dump($queue); + [0]=> string(5) "apple" - [1] => + [1]=> string(9) "raspberry" - [2] => + [2]=> string(6) "orange" - [3] => + [3]=> string(6) "banana" } ]]> diff --git a/reference/array/functions/natsort.xml b/reference/array/functions/natsort.xml index a347f8fd7a7..eb8a0b73ef9 100644 --- a/reference/array/functions/natsort.xml +++ b/reference/array/functions/natsort.xml @@ -1,6 +1,6 @@ - + @@ -153,7 +153,6 @@ Array [1] => 3 [5] => 9 ) - ゼロ埋め Array ( @@ -168,8 +167,8 @@ Array ( [5] => 0 [1] => 8 - [3] => 009 [0] => 09 + [3] => 009 [2] => 10 [4] => 011 ) diff --git a/reference/datetime/formats.xml b/reference/datetime/formats.xml index c6541849a3c..29f128d373c 100644 --- a/reference/datetime/formats.xml +++ b/reference/datetime/formats.xml @@ -1,6 +1,6 @@ - + サポートする日付と時刻の書式 @@ -99,7 +99,7 @@ var_dump($res["warnings"]); + [11]=> string(27) "The parsed date was invalid" } ]]> diff --git a/reference/datetime/functions/date-default-timezone-get.xml b/reference/datetime/functions/date-default-timezone-get.xml index b37f882a419..c1f61363754 100644 --- a/reference/datetime/functions/date-default-timezone-get.xml +++ b/reference/datetime/functions/date-default-timezone-get.xml @@ -1,6 +1,6 @@ - + @@ -85,7 +85,8 @@ date.timezone: Europe/London ' . date('e') . ' => ' . date('T'); +$ts = mktime(0, 0, 0, 1, 1, 2024); +echo date_default_timezone_get() . ' => ' . date('e') . ' => ' . date('T', $ts); ]]> &example.outputs; diff --git a/reference/datetime/functions/date-sun-info.xml b/reference/datetime/functions/date-sun-info.xml index 9f165aa13f7..7a78297eeb2 100644 --- a/reference/datetime/functions/date-sun-info.xml +++ b/reference/datetime/functions/date-sun-info.xml @@ -1,6 +1,6 @@ - + @@ -285,7 +285,7 @@ echo "Length of day: ", &example.outputs; diff --git a/reference/dom/dom/characterdata/before.xml b/reference/dom/dom/characterdata/before.xml index 751b8248b12..48c05388169 100644 --- a/reference/dom/dom/characterdata/before.xml +++ b/reference/dom/dom/characterdata/before.xml @@ -1,6 +1,6 @@ - + Dom\CharacterData::before @@ -42,7 +42,7 @@ echo $doc->saveXML(); &example.outputs; + hello ]]> diff --git a/reference/dom/dom/characterdata/remove.xml b/reference/dom/dom/characterdata/remove.xml index 4d73697f7ca..f1598394eab 100644 --- a/reference/dom/dom/characterdata/remove.xml +++ b/reference/dom/dom/characterdata/remove.xml @@ -1,6 +1,6 @@ - + Dom\CharacterData::remove @@ -41,7 +41,7 @@ echo $doc->saveXML(); &example.outputs; + ]]> diff --git a/reference/dom/dom/characterdata/replacewith.xml b/reference/dom/dom/characterdata/replacewith.xml index f6476b44348..e3f8cf75554 100644 --- a/reference/dom/dom/characterdata/replacewith.xml +++ b/reference/dom/dom/characterdata/replacewith.xml @@ -1,6 +1,6 @@ - + Dom\CharacterData::replaceWith @@ -42,7 +42,7 @@ echo $doc->saveXML(); &example.outputs; + beautiful ]]> diff --git a/reference/dom/dom/htmldocument/createfromstring.xml b/reference/dom/dom/htmldocument/createfromstring.xml index c415ebf4171..d116fb24120 100644 --- a/reference/dom/dom/htmldocument/createfromstring.xml +++ b/reference/dom/dom/htmldocument/createfromstring.xml @@ -1,6 +1,6 @@ - + Dom\HTMLDocument::createFromString @@ -75,7 +75,7 @@ $dom = Dom\HTMLDocument::createFromString(<<<'HTML' -

Hello, world!

+

Hello, world!

HTML); diff --git a/reference/dom/domdocument/append.xml b/reference/dom/domdocument/append.xml index c43ee3a5667..a6cbccd5a27 100644 --- a/reference/dom/domdocument/append.xml +++ b/reference/dom/domdocument/append.xml @@ -1,6 +1,6 @@ - + DOMDocument::append @@ -46,6 +46,7 @@ echo $doc->saveXML(); &example.outputs; beautiful diff --git a/reference/dom/domdocumentfragment/replacechildren.xml b/reference/dom/domdocumentfragment/replacechildren.xml index d34e7e950ea..c8448c4c702 100644 --- a/reference/dom/domdocumentfragment/replacechildren.xml +++ b/reference/dom/domdocumentfragment/replacechildren.xml @@ -1,6 +1,6 @@ - + DOMDocumentFragment::replaceChildren @@ -47,8 +47,7 @@ echo $doc->saveXML($fragment); &example.outputs; +beautiful ]]> diff --git a/reference/dom/domelement/before.xml b/reference/dom/domelement/before.xml index deb642a7a4a..d4667033f36 100644 --- a/reference/dom/domelement/before.xml +++ b/reference/dom/domelement/before.xml @@ -1,6 +1,6 @@ - + DOMElement::before @@ -46,6 +46,7 @@ echo $doc->saveXML(); &example.outputs; hello diff --git a/reference/dom/domelement/getattributenames.xml b/reference/dom/domelement/getattributenames.xml index 4d3debd3096..6f81443f0c1 100644 --- a/reference/dom/domelement/getattributenames.xml +++ b/reference/dom/domelement/getattributenames.xml @@ -1,6 +1,6 @@ - + DOMElement::getAttributeNames @@ -48,12 +48,12 @@ var_dump($dom->documentElement->getAttributeNames()); - string(10) "xmlns:some" - [1]=> - string(9) "some:test" - [2]=> - string(5) "test2" + [0]=> + string(10) "xmlns:some" + [1]=> + string(9) "some:test" + [2]=> + string(5) "test2" } ]]> diff --git a/reference/dom/domnode/getlineno.xml b/reference/dom/domnode/getlineno.xml index a5be742b8d3..e7bba1f7b94 100644 --- a/reference/dom/domnode/getlineno.xml +++ b/reference/dom/domnode/getlineno.xml @@ -1,6 +1,6 @@ - + @@ -62,7 +62,7 @@ printf('The tag is defined on line %d', $dom->getElementsByTagName('node' &example.outputs; tag is defined in line 3 +The tag is defined on line 3 ]]> diff --git a/reference/libxml/functions/libxml-get-errors.xml b/reference/libxml/functions/libxml-get-errors.xml index a637f89cb7d..3e945490b9d 100755 --- a/reference/libxml/functions/libxml-get-errors.xml +++ b/reference/libxml/functions/libxml-get-errors.xml @@ -1,6 +1,6 @@ - + libxml_get_errors @@ -104,10 +104,10 @@ function display_xml_error($error, $xml) PHP: Behind the Parser -----------------------------------------------^ +-----------------------------------------^ Fatal Error 76: Opening and ending tag mismatch: titles line 4 and title Line: 4 - Column: 46 + Column: 41 -------------------------------------------- ]]> diff --git a/reference/libxml/functions/libxml-set-external-entity-loader.xml b/reference/libxml/functions/libxml-set-external-entity-loader.xml index 3d066344c36..d81eb11b955 100644 --- a/reference/libxml/functions/libxml-set-external-entity-loader.xml +++ b/reference/libxml/functions/libxml-set-external-entity-loader.xml @@ -1,6 +1,6 @@ - + @@ -145,10 +145,14 @@ var_dump($dd->validate()); string(10) "-//FOO/BAR" string(25) "http://example.com/foobar" array(4) { - ["directory"] => NULL - ["intSubName"] => NULL - ["extSubURI"] => NULL - ["extSubSystem"] => NULL + ["directory"]=> + NULL + ["intSubName"]=> + NULL + ["extSubURI"]=> + NULL + ["extSubSystem"]=> + NULL } bool(true) ]]> diff --git a/reference/pcre/functions/preg-replace.xml b/reference/pcre/functions/preg-replace.xml index 0de0abd7091..0e55fee9651 100644 --- a/reference/pcre/functions/preg-replace.xml +++ b/reference/pcre/functions/preg-replace.xml @@ -1,6 +1,6 @@ - + @@ -275,6 +275,7 @@ echo $str; $count = 0; echo preg_replace(array('/\d/', '/\s/'), '*', 'xp 4 to', -1 , $count); +echo "\n"; echo $count; //3 ?> ]]> diff --git a/reference/reflection/reflectionclass/getdefaultproperties.xml b/reference/reflection/reflectionclass/getdefaultproperties.xml index f00d0aadf89..9e09952171c 100644 --- a/reference/reflection/reflectionclass/getdefaultproperties.xml +++ b/reference/reflection/reflectionclass/getdefaultproperties.xml @@ -1,6 +1,6 @@ - + @@ -69,16 +69,16 @@ var_dump($reflectionClass->getDefaultProperties()); - string(14) "staticProperty" - ["property"]=> - string(15) "propertyDefault" - ["privateProperty"]=> - string(22) "privatePropertyDefault" - ["defaultlessProperty"]=> - NULL - ["inheritedProperty"]=> - string(16) "inheritedDefault" + ["staticProperty"]=> + string(14) "staticProperty" + ["property"]=> + string(15) "propertyDefault" + ["privateProperty"]=> + string(22) "privatePropertyDefault" + ["defaultlessProperty"]=> + NULL + ["inheritedProperty"]=> + string(16) "inheritedDefault" } ]]> diff --git a/reference/reflection/reflectionclass/getdoccomment.xml b/reference/reflection/reflectionclass/getdoccomment.xml index 6a3c7a083ac..01e3eda3364 100644 --- a/reference/reflection/reflectionclass/getdoccomment.xml +++ b/reference/reflection/reflectionclass/getdoccomment.xml @@ -1,6 +1,6 @@ - + @@ -61,7 +61,7 @@ var_dump($rc->getDocComment()); &example.outputs; - + ReflectionConstant::getShortName @@ -41,7 +41,7 @@ namespace Foo; const BAR = 'bar'; -echo (new \ReflectionConstant('Foo\BAR'))->getName(); +echo (new \ReflectionConstant('Foo\BAR'))->getShortName(); ?> ]]> diff --git a/reference/simplexml/functions/simplexml-load-string.xml b/reference/simplexml/functions/simplexml-load-string.xml index 1e1ed49d57d..ee8881a27b5 100644 --- a/reference/simplexml/functions/simplexml-load-string.xml +++ b/reference/simplexml/functions/simplexml-load-string.xml @@ -1,6 +1,6 @@ - + @@ -130,11 +130,12 @@ print_r($xml); Forty What? - [from] => Joe - [to] => Jane - [body] => - I know that's the answer -- but what's the question? + [title] => Forty What? + [from] => Joe + [to] => Jane + [body] => + I know that's the answer -- but what's the question? + ) ]]> diff --git a/reference/simplexml/simplexmlelement/children.xml b/reference/simplexml/simplexmlelement/children.xml index 2c25c53270f..fafd171c8c1 100644 --- a/reference/simplexml/simplexmlelement/children.xml +++ b/reference/simplexml/simplexmlelement/children.xml @@ -1,6 +1,6 @@ - + @@ -95,8 +95,7 @@ foreach ($xml->children() as $second_gen) { &example.outputs; diff --git a/reference/simplexml/simplexmlelement/getDocNamespaces.xml b/reference/simplexml/simplexmlelement/getDocNamespaces.xml index 0d9d8a1fc4e..18c5c07c227 100644 --- a/reference/simplexml/simplexmlelement/getDocNamespaces.xml +++ b/reference/simplexml/simplexmlelement/getDocNamespaces.xml @@ -1,6 +1,6 @@ - + @@ -83,8 +83,8 @@ var_dump($namespaces); - string(21) "http://example.org/ns" + ["p"]=> + string(21) "http://example.org/ns" } ]]> diff --git a/reference/strings/functions/explode.xml b/reference/strings/functions/explode.xml index ec473d864a3..92ab1eccc70 100644 --- a/reference/strings/functions/explode.xml +++ b/reference/strings/functions/explode.xml @@ -1,6 +1,6 @@ - + @@ -165,20 +165,22 @@ var_dump( explode( ',', $input3 ) ); &example.outputs; string(5) "hello" -) -array(2) -( - [0] => string(5) "hello" - [1] => string(5) "there" -) -array(2) -( - [0] => string(0) "" - [1] => string(0) "" -) +array(1) { + [0]=> + string(5) "hello" +} +array(2) { + [0]=> + string(5) "hello" + [1]=> + string(5) "there" +} +array(2) { + [0]=> + string(0) "" + [1]=> + string(0) "" +} ]]> diff --git a/reference/strings/functions/htmlentities.xml b/reference/strings/functions/htmlentities.xml index dfca36617bd..de452dad3ff 100644 --- a/reference/strings/functions/htmlentities.xml +++ b/reference/strings/functions/htmlentities.xml @@ -1,5 +1,5 @@ - + @@ -211,7 +211,7 @@ echo htmlentities($str, ENT_COMPAT); diff --git a/reference/strings/functions/ltrim.xml b/reference/strings/functions/ltrim.xml index b360a1eaf1d..844703bff14 100644 --- a/reference/strings/functions/ltrim.xml +++ b/reference/strings/functions/ltrim.xml @@ -1,6 +1,6 @@ - + @@ -20,7 +20,7 @@ 二番目の引数を指定しない場合、 - mb_ltrim は以下の文字を取り除きます: + ltrim は以下の文字を取り除きます: &strings.stripped.characters; @@ -89,8 +89,8 @@ var_dump($clean); &example.outputs; - + @@ -89,15 +89,15 @@ var_dump($clean); &example.outputs; diff --git a/reference/strings/functions/str-word-count.xml b/reference/strings/functions/str-word-count.xml index b3be6f927fd..e6169b79e61 100644 --- a/reference/strings/functions/str-word-count.xml +++ b/reference/strings/functions/str-word-count.xml @@ -1,6 +1,6 @@ - + @@ -149,18 +149,16 @@ Array [5] => good [6] => today ) - Array ( [0] => Hello [6] => fri [10] => nd [14] => you're - [29] => looking - [46] => good - [51] => today + [28] => looking + [45] => good + [50] => today ) - Array ( [0] => Hello @@ -170,7 +168,6 @@ Array [4] => good [5] => today ) - 7 ]]> diff --git a/reference/strings/functions/strtok.xml b/reference/strings/functions/strtok.xml index 1b0f46e93f9..bc178ec1e5b 100644 --- a/reference/strings/functions/strtok.xml +++ b/reference/strings/functions/strtok.xml @@ -1,6 +1,6 @@ - + @@ -151,9 +151,8 @@ var_dump($first_token, $second_token); &example.outputs; diff --git a/reference/strings/functions/trim.xml b/reference/strings/functions/trim.xml index 8ecbb69a495..35e7802f941 100644 --- a/reference/strings/functions/trim.xml +++ b/reference/strings/functions/trim.xml @@ -1,7 +1,7 @@ - + @@ -93,8 +93,8 @@ var_dump($clean); &example.outputs; - + @@ -51,6 +51,7 @@ <methodname>Uri\Rfc3986\Uri::withFragment</methodname> の基本的な例 withFragment("bar"); diff --git a/reference/xmlwriter/xmlwriter/writecdata.xml b/reference/xmlwriter/xmlwriter/writecdata.xml index 16e3905a8fd..c40e9ece368 100644 --- a/reference/xmlwriter/xmlwriter/writecdata.xml +++ b/reference/xmlwriter/xmlwriter/writecdata.xml @@ -1,6 +1,6 @@ - + @@ -97,9 +97,10 @@ echo $xml->outputMemory(true); &example.outputs; - + ]]>