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
convert ***sort builtins to use inout instead of references
[hiphop-php.git]
/
hphp
/
test
/
zend
/
good
/
ext
/
standard
/
tests
/
strings
/
get_html_translation_table_basic10.php
blob
313ce8febeef4367930aa8896f47fd728570d7d6
1
<
?hh
2
3
function
so
(
$a
,
$b
) {
return
ord
(
$a
) -
ord
(
$b
); }
4
<<
__EntryPoint
>>
function
main
():
void
{
5
$table
=
HTML_ENTITIES
;
6
$tt
=
get_html_translation_table
(
$table
,
ENT_COMPAT
,
"ISO-8859-1"
);
7
uksort
(
inout
$tt
,
'so'
);
8
var_dump
(
count
(
$tt
) );
9
print_r
(
$tt
);
10
echo
"Done
\n
"
;
11
}