php-internal-docs
8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
addglob.php
Go to the documentation of this file.
1
<?php
2
3
$z
=
new
ZipArchive
;
4
$z
->open(
'a.zip'
, ZIPARCHIVE::CREATE);
5
6
/* or 'remove_all_path' => 0*/
7
$options
= array(
8
'remove_path'
=>
'/home/francis/myimages'
,
9
'add_path'
=>
'images/'
,
10
);
11
$found
=
$z
->addGlob(
"/home/pierre/cvs/gd/libgd/tests/*.png"
, 0,
$options
);
12
var_dump
(
$found
);
13
$z
->close();
$found
$found
Definition
addglob.php:11
$z
$z
Definition
addglob.php:3
var_dump
var_dump(mixed $value, mixed ... $values)
Definition
basic_functions.stub.php:3789
ZipArchive
Definition
php_zip.stub.php:68
$options
if(PHP_SAPI !='cli') if($argc< 1) $options
Definition
ext_skel.php:376
ext
zip
examples
addglob.php
Generated on Sat Aug 23 2025 01:46:12 for php-internal-docs by
1.13.2