Clear Contents of a File using PHP

fopen function with write mode

<?php

$fp = fopen('test.txt', 'wb');
fclose($fp);

Leave a Comment

Cancel reply

Your email address will not be published.