我需要获取*.m4v
和*.mp4
文件。
这是我用来获取一种文件类型的方法。我应该使用什么代码来获得BOTH类型的列表?
//get all image files with a .m4v extension.
$images = glob($directory . "*.m4v");
感谢
在glob(
)手册页面中:
$images = glob($directory . "*.{m4v,mp4}", GLOB_BRACE);
我需要获取*.m4v
和*.mp4
文件。
这是我用来获取一种文件类型的方法。我应该使用什么代码来获得BOTH类型的列表?
//get all image files with a .m4v extension.
$images = glob($directory . "*.m4v");
感谢
在glob(
)手册页面中:
$images = glob($directory . "*.{m4v,mp4}", GLOB_BRACE);