获取文件名的基本信息

Posted lujieting

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了获取文件名的基本信息相关的知识,希望对你有一定的参考价值。

<?php
//想要获取a.jpg这个文件名的基本信息
//
require ‘10_return.php‘;
require ‘library/strinf.php‘;
print_r(getFileInfo(‘global.css‘));
echo ‘<hr>‘;
echo uuid();
echo random(0);
 
//////////////////////////////////////////
 
<?php
$files = [
    ‘name‘ => [
        0 => ‘1.gif‘,
        1 => ‘1.gif‘,
        2 => ‘1.gif‘,
    ],
    ‘type‘ => [
        0 => ‘image/gif‘,
        1 => ‘image/gif‘,
        2 => ‘image/gif‘,
    ],
];
$files = [
    [‘name‘ => ‘1.gif‘,‘type‘ => ‘image/gif‘],
    [‘name‘ => ‘1.gif‘,‘type‘ => ‘image/gif‘],
    [‘name‘ => ‘1.gif‘,‘type‘ => ‘image/gif‘],
];

以上是关于获取文件名的基本信息的主要内容,如果未能解决你的问题,请参考以下文章