Answers for "php increase number in file by 1"

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 by 1"

Browse Popular Code Answers by Language