Remove windows encoding from `.php` files
[hiphop-php.git] / hphp / test / zend / good / ext / standard / tests / strings / get_html_translation_table_basic1.php
blobbc7d37d3940b097e6decdc5233be0a80c413c685
1 <?php
2 /* Prototype : array get_html_translation_table ( [int $table [, int $quote_style [, string charset_hint]]] )
3 * Description: Returns the internal translation table used by htmlspecialchars and htmlentities
4 * Source code: ext/standard/html.c
5 */
7 /* Test get_html_translation_table() when table is specified as HTML_ENTITIES */
10 echo "*** Testing get_html_translation_table() : basic functionality ***\n";
12 echo "-- with table = HTML_ENTITIES --\n";
13 $table = HTML_ENTITIES;
14 $tt = get_html_translation_table($table, ENT_COMPAT, "UTF-8");
15 asort($tt);
16 var_dump( $tt );
18 echo "-- with table = HTML_SPECIALCHARS --\n";
19 $table = HTML_SPECIALCHARS;
20 $tt = get_html_translation_table($table, ENT_COMPAT, "UTF-8");
21 asort($tt);
22 var_dump( $tt );
24 echo "Done\n";