File_Fortune::setHeaderFile (Previous) (Next) File_Fstab

View this page in Last updated: Sun, 28 Sep 2008
English | French | German | Japanese | Plain HTML

File_Fortune::update()

File_Fortune::update()  -- Update an existing fortune

Description

update() may be used to update fortunes. However, the recommended practice is to use array access:


<?php
$fortunes[2] = 'Updated fortunes are fun!';

If multiple files or a directory have been set, you cannot manipulate the fortune list, and this method will raise an exception.

Parameter

integer $index

string $fortune

Throws

throws File_Fortune_Exception

Note

This function can not be called statically.

File_Fortune::setHeaderFile (Previous) (Next) File_Fstab

Download Documentation Last updated: Sun, 28 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.