Login   Register  
PHP Classes
elePHPant
Icontem

Very simple random text : Pick a random line from text line

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-07-21 (9 years ago) RSS 2.0 feedNot enough user ratingsTotal: 599 All time: 4,711 This week: 2,088Up
Version License Categories  
random 1.0Unspecified (ask the au...Files and Folders, Text processing
Description Author  

This is a very simple class that can read a text file and return a random line from the file.

It can be used to show the "Quote of the day" that is seen in many site.

Picture of Amr Sobhy
Name: Amr Sobhy <contact>
Classes: 1 package by
Country: Egypt Egypt
Age: 26
All time rank: 270125 in Egypt Egypt
Week rank: 1821 Up22 in Egypt Egypt Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file amr.php Example the class file
Plain text file random.class.php Class the class file
Accessible without login Plain text file Say.txt Data the plain text that contains phrases

 Version Control Unique User Downloads Download Rankings  
 0%Total:599All time:4,711
 This week:0This week:2,088Up