diff --git a/language/control-structures/foreach.xml b/language/control-structures/foreach.xml index 7667bc3af1..9ee99e60fc 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 9ca4a0ebb3..460300caee 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 8bf90d5372..f24976358d 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 15c4f7b26c..b5fea20cf5 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 93358a57ca..4ed0bf9ae4 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 71970d6497..eceeccc29f 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 fe2b8d4a8d..2d892d8a50 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 474814b35f..5086eec149 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 b3808082b2..dd4c8a1878 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 7107953d53..8bde48bf23 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 096d254877..15f2640e54 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 6fca44fcae..7c30b1613b 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 c663f3b41b..c8e0a831c0 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 a347f8fd7a..eb8a0b73ef 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 c6541849a3..29f128d373 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 b37f882a41..c1f6136375 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 9f165aa13f..7a78297eeb 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 751b8248b1..48c0538816 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 4d73697f7c..f1598394ea 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 f6476b4434..e3f8cf7555 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 c415ebf417..d116fb2412 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 c43ee3a566..a6cbccd5a2 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 d34e7e950e..c8448c4c70 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 deb642a7a4..d4667033f3 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 4d3debd309..6f81443f0c 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 a5be742b8d..e7bba1f7b9 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 a637f89cb7..3e945490b9 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 3d066344c3..d81eb11b95 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 0de0abd709..0e55fee965 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 f00d0aadf8..9e09952171 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 6a3c7a083a..01e3eda336 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 1e1ed49d57..ee8881a27b 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 2c25c53270..fafd171c8c 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 0d9d8a1fc4..18c5c07c22 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 ec473d864a..92ab1eccc7 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 dfca36617b..de452dad3f 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 b360a1eaf1..844703bff1 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 b3be6f927f..e6169b79e6 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 1b0f46e93f..bc178ec1e5 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 8ecbb69a49..35e7802f94 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 16e3905a8f..c40e9ece36 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; - + ]]>