dongnai8013 2015-07-01 09:02
浏览 142

用于文件夹中文件的PHP通配符

I have a .pdf file in a directory that needs to be viewed/downloaded but the .pdf file changes its filename every so often, so I was just wondering if there is anything I can do to make it a kind of wildcard so the button link changes to /files/*.pdf

  • 写回答

2条回答 默认 最新

  • dreljie602951 2015-07-01 09:11
    关注

    The function you are looking for is glob().

    评论

报告相同问题?