Example of Write-Only and Read-Write Mode in PHP

The following code examples demonstrate the difference between Write-Only and Read-Write Mode in PHP. In fact, both write-only (w) and read/write (w+) modes create a new file. In case, the file already exists, it is overwritten. However, the file opened in the mode ‘w’ can’t be read. Whereas, if we open it in ‘w+’ mode, … Continue reading Example of Write-Only and Read-Write Mode in PHP