PHP code example of ierusalim / file-records
1. Go to this page and download the library: Download ierusalim/file-records library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ierusalim / file-records example snippets
namespace ierusalim\FileRecords;
$fr->appendRecord("01234567");
$fr->appendRecord("Abc defg");
echo $fr->recordsCount();
// 2
echo $fr->readRecord(1);
// Abc defg
echo $fr->readRecord(0);
// 01234567
$fr->reWriteRecord(1,"lala lal");
echo $fr->readRecord(1);
// lala lal