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 Joshua hatfield  >  floMessages  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: An example file showing how to use floMessages.
Class: floMessages
Generate random texts from multiple message lists
Author: By
Last change:
Date: 2005-08-19 09:05
Size: 876 bytes
 

Contents

Class file image Download
<?
include("floMessages.php");
$msg = new floMessages();
$msg->add("verb""love");
$msg->add("verb""kiss");
$msg->add("verb""leave");
$msg->add("verb""lick");
$msg->add("verb""thank");
$msg->add("verb""bite");
$msg->add("verb""kill");
$msg->add("verb""hug");
$msg->add("verb""spank");
$msg->add("verb""scatter");
$msg->add("verb""smother");
$msg->add("verb""cover");
$msg->add("verb""chunk");
$msg->add("verb""top");
$msg->add("verb""dice");
$msg->add("verb""pepper");

$msg->add("target""you");
$msg->add("target""your momma");
$msg->add("target""my dog");
$msg->add("target""Jennifer Aniston");
$msg->add("target""Carrot Top");
$msg->add("target""the remains of a dead body I found in my yard about 3 months ago");

echo(
"<br><br>Now, I would like to ".$msg->get("verb")." ".$msg->get("target").".");
?>