method delete documentation in bbn\File

Deletes the file.

Example

X::hdump( is_file('C:/Test/file.txt') ); // (bool) true $file = new File('C:/Test/file.txt'); $file->delete(); X::hdump( is_file('C:/Test/file.txt') ); // (bool) false function() { if ( $this->file ){ unlink($this->file); } $this->file = false; return $this; }

Deletes the file. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.