1
0
mirror of https://github.com/php/web-php.git synced 2026-03-31 11:42:09 +02:00
Files
archived-web-php/oreilly99/s_encode.php3
1999-08-21 16:11:20 +00:00

19 lines
549 B
PHP

<?php require "header.inc"?>
<H1>Encoding</H1>
<H2>Base64</H2>
<?example('<?php
echo ($encoded = base64_encode("A rose by any other name..."));
echo ($decoded = base64_decode($encoded));
?>');?>
<?php
output(($encoded = base64_encode("A rose by any other name...")).
"<BR>".
($decoded = base64_decode($encoded)));
?>
<H2>HTML</H2>
<?example('<?php
echo htmlspecialchars("This & that are <problems>.");
?>');?>
<?php output(htmlspecialchars(htmlspecialchars("This & that are <problems>."))); ?>
<?php require "footer.inc"?>