Chumper\Zipper\Zipper::addString PHP Method

addString() public method

Add a file to the zip using its contents
public addString ( $filename, $content )
$filename string The name of the file to create
$content string The file contents
    public function addString($filename, $content)
    {
        $this->addFromString($filename, $content);
        return $this;
    }

Usage Example

Beispiel #1
0
 /**
  * Add a file to the zip using its contents
  *
  * @param $filename string The name of the file to create
  * @param $content string The file contents
  * @return $this Zipper instance
  * @static 
  */
 public static function addString($filename, $content)
 {
     return \Chumper\Zipper\Zipper::addString($filename, $content);
 }
All Usage Examples Of Chumper\Zipper\Zipper::addString