[英]How do I get the values from an array?
I am getting following output-: 我得到以下输出:
Array
(
[read_only] =>
[revision] => 128
[bytes] => 0
[thumb_exists] =>
[rev] => 80527cbf3f
[modified] => Tue, 03 Jan 2017 05:09:35 +0000
[size] => 0 bytes
[path] => /Unfiled Documents
[is_dir] => 1
[modifier] =>
[root] => dropbox
[icon] => folder
)
1
Script : 剧本:
echo '<pre>', print_r($client->getMetadata('/Unfiled Documents')), '</pre>';
How do I access the files and folder inside the "Unfilled Documents"
. 如何访问
"Unfilled Documents"
的文件和文件夹。
First you have to get folder path like: Please try following solution might work 首先,您必须获得以下文件夹路径:请尝试以下解决方案可能有效
$path = $client->getMetadata['path'];
$files = scandir($path);
print_r($files);
I access the values now: 我现在访问值:
$query = 'UR-000001';
$path = '/Unfiled Documents';
$filenames = $client->searchFileNames($path, $query, 10, false);
echo '<pre>', print_r($filenames[0]), '</pre>';
And get the following ouput : 并获得以下输出:
Array
(
[rev] => 83527cbf3f
[thumb_exists] =>
[path] => /Unfiled Documents/UR-000001 – PLAN – 123432.pdf.txt
[is_dir] =>
[client_mtime] => Mon, 02 Jan 2017 13:20:19 +0000
[icon] => page_white_text
[read_only] =>
[modifier] =>
[bytes] => 0
[modified] => Tue, 03 Jan 2017 06:54:54 +0000
[size] => 0 bytes
[root] => dropbox
[mime_type] => text/plain
[revision] => 131
)
1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.