Generating a unique ID in PHP

前端 未结 3 1885
无人及你
无人及你 2021-02-05 13:33

I\'m trying to generate a unique ID in php in order to store user-uploaded content on a FS without conflicts. I\'m using php, and at the moment this little snippet is responsib

3条回答
  •  我在风中等你
    2021-02-05 13:53

    uniqid() is what you're looking for in most practical situations.

    You can make it even more "uniq" by adding a large random number after it.

提交回复
热议问题