File_Fortune::setHeaderFile (Previous) (Next) File_Fstab

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

File_Fortune::update()

File_Fortune::update()  -- 既存の fortune を更新する

説明

update() は fortune を更新します。 しかし、これを使用するよりも配列記法を使用したほうが簡単です。


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

複数のファイルやディレクトリを操作している場合は fortune の一覧を操作することができません。 そのため、このメソッドは例外を発生させます。

パラメータ

integer $index

string $fortune

例外・エラー

File_Fortune_Exception をスローします。

注意

この関数は、スタティックにコールする ことはできません。

File_Fortune::setHeaderFile (Previous) (Next) File_Fstab

Download Documentation Last updated: Sun, 05 Oct 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.