hi guys,
is there an easier way of displaying codes on your website without using
the ASCII codes?
is there an easier way of displaying codes on your website without using
the ASCII codes?
| Code: |
|
<command> |
| Code: |
| <?php
function converthtml($old) { $search = array ('@<@', '@>@', '@\"@'); $replace = array ('<', '>', '"'); echo preg_replace($search, $replace, $old); } $old = <<<HTML <?php <span style="font-color: #000fff;">hello people of the world.</span> ?> HTML; converthtml($old); ?> |
| Code: |
| <?php
show_source("test.php"); ?> |