Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Setec Astronomy  >  Key Highlighter  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: Standard sample file
Class: Key Highlighter
Highlight keywords in current script output
Author: By
Last change:
Date: 2004-08-07 07:13
Size: 273 bytes
 

Contents

Class file image Download
<?php 
require ('keyhighlighter.class.php');

function 
my_highlighter ($matches) {
    return 
'<span style="font-weight: bolder; color: #FF0000;">' $matches[0] . '</span>';
}

new 
keyhighlighter ('W3C'false'my_highlighter');
readfile ('http://www.w3c.org/');
?>