mirror of
https://github.com/php/web-php.git
synced 2026-03-24 15:22:19 +01:00
30 lines
624 B
PHP
Executable File
30 lines
624 B
PHP
Executable File
<?php require "header.inc"?>
|
|
<H1>Encoding</H1>
|
|
<H2>Base64</H2>
|
|
<?example('<?php
|
|
echo ($encoded = base64_encode($mydata));
|
|
echo ($decoded = base64_decode($encoded));
|
|
?>');?>
|
|
<H6>Output:</H6><BLOCKQUOTE>
|
|
<h6>
|
|
<?php
|
|
echo ($encoded = base64_encode("A rose by any other name..."));
|
|
echo "<BR>";
|
|
echo ($decoded = base64_decode($encoded));
|
|
?>
|
|
</h6>
|
|
</BLOCKQUOTE>
|
|
<H2>HTML</H2>
|
|
<?example('<?php
|
|
echo htmlspecialchars("This & that are <problems>.");
|
|
?>');?>
|
|
<H6>Output:</H6><BLOCKQUOTE>
|
|
<h6>
|
|
<?php
|
|
echo htmlspecialchars("This & that are <problems>.");
|
|
?>
|
|
</h6>
|
|
</BLOCKQUOTE>
|
|
|
|
<?php require "footer.inc"?>
|