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
blob313ce8febeef4367930aa8896f47fd728570d7d6
1 <?hh
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";