Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17177 программистов и 1833 робота. Сейчас ищут 1715 программистов ...
File_Fortune::delete
Вернуться к: File_Fortune
File_Fortune::delete
File_Fortune::delete() – Delete an existing fortune
Synopsis
require_once 'File/Fortune.php';
void File_Fortune::delete ( int $index )
delete() may be used to delete a fortune at a given index. However, the easier usage is to simply use unset with array notation:
<?php
unset($fortunes[$index]);
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
Throws
throws File_Fortune_Exception
Note
This function can not be called statically.
Вернуться к: File_Fortune