public function addFromString($localname , $contents)
    {
        return $this->pclZip->add(
            array(
                array(
                    PCLZIP_ATT_FILE_NAME    => $localname,
                    PCLZIP_ATT_FILE_CONTENT => $contents,
                )
            )
        );
    }
public function addFromString($localname , $contents)
    {
        return $this->pclZip->add(
            array(
                array(
                    PCLZIP_ATT_FILE_NAME    => $localname,
                    PCLZIP_ATT_FILE_CONTENT => $contents,
                )
            )
        );
    }
public function addFromString ( $ localname , $ contents ) { return $ this -> pclZip -> add ( array ( array ( PCLZIP_ATT_FILE_NAME => $ localname , PCLZIP_ATT_FILE_CONTENT => $ contents , ) ) ) ; }
Add a file to a ZIP archive using its contents

@param string $localname The name of the entry to create.
@param string $contents  The contents to use to create the entry. It is used in a binary safe mode.

@return boolean
Add a file to a ZIP archive using its contents