Symfony ZipArchive PHP Extension Class Not Found

安稳与你 提交于 2019-12-04 12:36:40

After installation is done and check your ZipArchive class is exist with this code

var_dump(class_exists('ZipArchive'));

if it returns true then you just add

use ZipArchive;

put it after your namespace
and then put this code

$zip = new ZipArchive();

on where you are want to put.

You need to refer to ziparchive and then use the call $Z. To refer you have to add use ZipArchive before the new line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!