Phar::offsetSet

Phar::offsetSet — set the contents of an internal file to those of an external file

Description

publicvoidPhar::offsetSet
( string$offset
, string$value
)

Note:

This
method requires the php.ini setting phar.readonly to be
set to 0 in order to work for Phar
objects. Otherwise, a PharException will be thrown.

This is an implementation of the ArrayAccess interface allowing
direct manipulation of the contents of a Phar archive using
array access brackets. offsetSet is used for modifying an
existing file, or adding a new file to a Phar archive.