PHP Classes

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Thomas Björk  >  Evaluate  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: A simple exampl
Class: Evaluate
Extend the eval function to allow non-php content
Author: By
Last change: Improved the example
Date: 12 years ago
Size: 291 bytes


Class file image Download

$eval = new evaluate();
$output = $eval->mixeval("<B><?php include(\"obi.php\"); ?></B> <I><? echo \"Hello\";?></I> <U>there</U>");
// Handle output here
echo $output;

$output = $eval->mixevalfile("obi.php");
// Handle output here
echo $output;