PHP fgetss() İşlevi
❮ PHP Dosya Sistemi ReferansıÖrnek
Açık HTML dosyasından (şerit etiketleri) bir satır okuyun:
<?php
$file = fopen("test.htm","r");
echo fgetss($file);
fclose($file);
?>
Tanım ve Kullanım
fgetss() işlevi, açık bir dosyadan HTML ve PHP etiketlerinden arındırılmış bir satır döndürür.
Not: fgetss() işlevi PHP 7.3'ten kaldırılmıştır.
Sözdizimi
fgetss(file, length, tags)
Parametre Değerleri
Parameter | Description |
---|---|
file | Required. Specifies the open file to return a line from |
length | Optional. Specifies the number of bytes to read. Reading stops when length-1 bytes have been reached, or a when a new line occurs, or on EOF. Note: This parameter is required in versions prior to PHP 5 |
tags | Optional. Specifies which tags that will not be removed |
Teknik detaylar
Geri dönüş değeri: | Başarı durumunda dosyadan okunan tek satır, EOF'de FALSE veya hata |
---|---|
PHP Sürümü: | 4.0+ |
❮ PHP Dosya Sistemi Referansı