File_Fortune::getRandom() – Retrieve random fortune


require_once 'File/Fortune.php';

string File_Fortune::getRandom ( )


getRandom() pulls a random fortune. If a fortune file has been explicitly specified, the fortune will be pulled from that file; if a directory has been specified, a random fortune file will first be selected.


throws no exceptions thrown


This function can not be called statically.

Retrieve current header file name (Previous) Save changes (Next)
Last updated: Sun, 19 Dec 2010 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.