File_Fortune::setFiles

File_Fortune::setFiles() – Set multiple fortune files

Synopsis

require_once 'File/Fortune.php';

File_Fortune File_Fortune::setFiles ( )

Description

setFiles() may be used to define a list of files from which to pull fortunes. You may pass either a string single argument, an array single argument, or multiple string arguments. As examples:

<?php
// single file:
$fortunes->setFiles('/path/to/fortunefile');

// array of files:
$fortunes->setFiles(array('/path/to/fortunefile''/another/fortunefile''/more/fortunes'));

// multiple individual files:
$fortunes->setFiles('/path/to/fortunefile''/another/fortunefile''/more/fortunes');
?>

Throws

throws no exceptions thrown

Note

This function can not be called statically.

Set fortune file (Previous) Set header file name (Next)
Last updated: Fri, 28 Nov 2014 — 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.