mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Docs bug #66542: Fix inconsistencies in PDOStatement::fetchAll() examples
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342140 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
7edc885311
commit
36e4bf067b
1 changed files with 28 additions and 2 deletions
|
@ -134,6 +134,14 @@ Fetch all of the remaining rows in the result set:
|
|||
Array
|
||||
(
|
||||
[0] => Array
|
||||
(
|
||||
[name] => apple
|
||||
[0] => apple
|
||||
[colour] => red
|
||||
[1] => red
|
||||
)
|
||||
|
||||
[1] => Array
|
||||
(
|
||||
[name] => pear
|
||||
[0] => pear
|
||||
|
@ -141,7 +149,7 @@ Array
|
|||
[1] => green
|
||||
)
|
||||
|
||||
[1] => Array
|
||||
[2] => Array
|
||||
(
|
||||
[name] => watermelon
|
||||
[0] => watermelon
|
||||
|
@ -231,7 +239,7 @@ array(3) {
|
|||
["watermelon"]=>
|
||||
array(1) {
|
||||
[0]=>
|
||||
string(5) "green"
|
||||
string(5) "pink"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -284,6 +292,20 @@ array(3) {
|
|||
["colour"]=>
|
||||
string(4) "pink"
|
||||
}
|
||||
[3]=>
|
||||
object(fruit)#4 (2) {
|
||||
["name"]=>
|
||||
string(5) "apple"
|
||||
["colour"]=>
|
||||
string(3) "red"
|
||||
}
|
||||
[4]=>
|
||||
object(fruit)#5 (2) {
|
||||
["name"]=>
|
||||
string(4) "pear"
|
||||
["colour"]=>
|
||||
string(5) "green"
|
||||
}
|
||||
}
|
||||
]]>
|
||||
</screen>
|
||||
|
@ -318,6 +340,10 @@ array(3) {
|
|||
string(12) "pear: yellow"
|
||||
[2]=>
|
||||
string(16) "watermelon: pink"
|
||||
[3]=>
|
||||
string(10) "apple: red"
|
||||
[4]=>
|
||||
string(11) "pear: green"
|
||||
}
|
||||
]]>
|
||||
</screen>
|
||||
|
|
Loading…
Reference in a new issue