dptdb84606 2013-07-01 13:36 采纳率: 0%
浏览 10
已采纳

使用php制作图像第一个字符的文件夹? [关闭]

I want to create the folder with the first character of the image name using PHP. I have simple upload form please help me to create action page.

thanks.

  • 写回答

1条回答 默认 最新

  • 普通网友 2013-07-01 13:39
    关注
    $image_name = "test.jpg";
    $first_char = substr($image_name, 0, 1);
    
    mkdir($first_char);
    

    substr() mkdir()

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?