fileForceContents()
fileForceContents(string $dir, string $contents) : \Transvision\int/false
This is the equivalent of file_put_contents() but in addition it will create the folders and subfolders to the target if they don't exist
Parameters
string | $dir | path to the file we want to create |
string | $contents | the string we want to write |
Returns
\Transvision\int/false —value in bytes if success, false otherwise