Skip to content
Advertisement

How to generate a new GUID?

I’m working on a web service which requires a new GUID() passed as a reference to a method within the service.

I am not familiar with C# or the GUID() object, but require something similar for PHP (so create a new object which from my understanding returns an empty/blank GUID).

Any ideas?

Advertisement

Answer

You can try the following:

JavaScript

Source – com_create_guid

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement