advanced code snippet search
xuanyan on 06/01/08
textmate guid
06/01/08 11:37am06/01/08 11:23am
1 person have marked this snippet as a favorite
heinz1959
function to_guid_string($mix){ if(is_object($mix) && function_exists('spl_object_hash')) { return spl_object_hash($mix); }elseif(is_resource($mix)){ $mix = get_resource_type($mix).strval($mix); }else{ $mix = serialize($mix); } return md5($mix);}
Report this snippet Tweet
Comment:
You need to login to post a comment.