Output the file with the PHP syntax highlighted in PHP

Description

The following code shows how to output the file with the PHP syntax highlighted.

Example


  //ww w . j ava 2 s  .com
<html>
<body>
    <?php
    highlight_file("a.php");
    ?>
</body>
</html>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Data Types »




Array
Array Associative
Array Util
ArrayObject
Data Types
Date
Date Format
DateTime
Number
String
String Escape
String Filter
String HTML
String Type
Timezone