open a file for writing with option 'w'
it completely wipes all
data from that file.
This action is also
referred to as "truncating" a
Truncate literally means to shorten.
erase all the data from a file we
need to open the file for normal writing.
existing data within the file will be lost.
Truncating is most often used on files that contain data that
will only be used for a short time.
These type of
files are most often referred to as temporary
NoteFor more detail please see Php Manual at http://www.php.net