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? Answer You can try the following: Source –