Remote Authentication-hexdigest() function

Remote Authentication-hexdigest() function

I try to configure remote authentication settings for SSO in Help Center Portal and encounter apikey  which generating with the function => hexdigest(MD5(operation+email+remoteauthkey*+ts)).  I have supposed this function(hexdigest()) belongs to java, but I use PHP. How can I use this function in PHP?