repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
introduce array_multisort1, ..., array_multisort9
[hiphop-php.git]
/
hphp
/
test
/
slow
/
ext_array
/
array_combine_key_tostring.php
blob
62f207f5498f48856001a880511922e2ffac9d7f
1
<
?hh
2
3
class
Foo
{
function
__toString
() {
return
'Hello'
; } }
4
5
<<
__EntryPoint
>>
6
function
main_array_combine_key_tostring
() {
7
$foos
= [
new
Foo
];
8
$bar
=
array_combine
(
$foos
,
$foos
);
9
10
$arrays
= [
array
(
1
),
2
];
11
$bar2
=
array_combine
(
$arrays
,
$arrays
);
12
13
var_dump
(
$bar
);
14
var_dump
(
$bar2
);
15
echo
"
\n
"
;
16
}