Answers for "php increase number in file"

PHP
3

php increase number in file by one

<?php
$file = 'count.txt';
$fdata = file_get_contents ( $file );
$fdata = intval($fdata) + 1;
file_put_contents($file, $fdata);
?>
Posted by: Guest on May-12-2020

Code answers related to "php increase number in file"

Browse Popular Code Answers by Language