Last active
January 7, 2019 14:09
-
-
Save ann71727/9202a00b28bdf2295f3f264158a5075b to your computer and use it in GitHub Desktop.
PHP 取唯一檔名 get unique filename
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
uniqid() | |
54e6d1765a02a | |
uniqid('img_') | |
img_54e6d1765a0ec | |
uniqid('', true) | |
54e6d1765a1044.98757507 | |
uniqid('img_', true) | |
img_54e6d1765a1212.51675326 | |
md5($filename) | |
fe6dbefca221b544567d82f830fb9a1e | |
md5($filename . time()) | |
329be60060390159f156b229f3acfe4f | |
md5($filename . microtime()) | |
f261026e766a32a5f09835154483936d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment