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
Happy New Year (again)
[hiphop-php.git]
/
hphp
/
test
/
quick
/
builtin_return.php
blob
b88c947ae3b003372c57f9848d8a53131db1e27e
1
<
?php
2
// Copyright 2004-2014 Facebook. All Rights Reserved.
3
4
function
foo
(
array
$data
) {
5
$ret
=
current
(
$data
);
6
if
(
$ret
===
'false'
) {
7
$ret
=
false
;
8
}
else
{
9
$ret
= (
bool
)
$ret
;
10
}
11
return
$ret
;
12
}
13
14
var_dump
(
foo
(
array
()));