我应该如何创建一个非增量的唯一ID?

For example, right now when I'm creating boards (agile), it will create a new board and its id will be n + 1.

What is an efficient way of creating an ID where there won't be any collision even if there are 1 billion+ entries? I'll be implementing this in PHP

Thanks, Tim

Which OS are you on? I've done a bit of googling.: and there's a com extension for Windows that provides GUID generation, and a PECL one for Unix (which provides the uuid_create() function).

As a PHP newbie, I am fairly gobsmacked there is still no native function to generate a GUID! I can remember looking at this briefly a decade or so ago and being surprised by it then. Some things don't progress, it seems.