Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F34675599
hook array merge test
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
daniel
Oct 6 2021, 8:56 AM
2021-10-06 08:56:25 (UTC+0)
Size
680 B
Referenced Files
None
Subscribers
None
hook array merge test
View Options
<?php
$wgHooks1
=
[
'Foo'
=>
[
'X::onFoo'
,
'Y::onFoo'
,
[
'myFoo'
,
[
'n'
=>
1
,
'm'
=>
2
,
3
]
]
],
'Bar'
=>
[
'X::onBar'
,
'Y::onBar'
,
[
'myBar'
,
[
'n'
=>
11
,
'm'
=>
12
,
13
]
]
],
];
$wgHooks2
=
[
'Foo'
=>
[
'A::onFoo'
,
'B::onFoo'
,
[
'yourFoo'
,
[
'n'
=>
1
,
'm'
=>
2
,
3
]
]
],
'Bar'
=>
[
'A::onBar'
,
'B::onBar'
,
[
'yourBar'
,
[
'n'
=>
21
,
'm'
=>
22
,
23
]
]
],
];
print
"
\n\n
array_merge:
\n
"
;
var_export
(
array_merge
(
$wgHooks1
,
$wgHooks2
)
);
print
"
\n\n
array_merge_recursive:
\n
"
;
var_export
(
array_merge_recursive
(
$wgHooks1
,
$wgHooks2
)
);
print
"
\n\n
array_replace_recursive:
\n
"
;
var_export
(
array_replace_recursive
(
$wgHooks1
,
$wgHooks2
)
);
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9197653
Default Alt Text
hook array merge test (680 B)
Attached To
Mode
P17427 hook array merge test
Attached
Detach File
Event Timeline
Log In to Comment