void
File_Fortune::update
(
int
$index
,
string
$fortune
)
update() は fortune を更新します。 しかし、これを使用するよりも配列記法を使用したほうが簡単です。
<?php
$fortunes[2] = 'Updated fortunes are fun!';
複数のファイルやディレクトリを操作している場合は fortune の一覧を操作することができません。 そのため、このメソッドは例外を発生させます。
$index
$fortune
File_Fortune_Exception をスローします。
This function can not be called statically.