Found a total of 1 related content
ftruncate() function in PHP
Article Introduction:The ftruncate() function truncates the open file to the specified length. This function returns TRUE on success and FALSE on failure. Syntax ftruncate(file_pointer,size) Parameters file_pointer - The file pointer must be open for writing to truncate. size - The size of the file to truncate. Return ftruncate() function returns. TRUE on success, FALSE on failure. Example<?php echofilesize("new.txt"); echo
2023-09-12
comment 0
372