PHP ftell() İşlevi
❮ PHP Dosya Sistemi ReferansıÖrnek
Açık bir dosyada okuma/yazma işaretçisinin geçerli konumunu döndürün:
<?php
$file = fopen("test.txt","r");
// Print current position
echo ftell($file);
// Change current position
fseek($file,"15");
// Print current position again
echo "<br>" . ftell($file);
fclose($file);
?>
Tanım ve Kullanım
ftell() işlevi, açık bir dosyada okuma/yazma işaretçisinin geçerli konumunu döndürür.
Sözdizimi
ftell(file)
Parametre Değerleri
Parameter | Description |
---|---|
file | Required. Specifies the open file to check |
Teknik detaylar
Geri dönüş değeri: | Dosya işaretçi konumu veya hata durumunda FALSE. |
---|---|
PHP Sürümü: | 4.0+ |
❮ PHP Dosya Sistemi Referansı