I'm making a simple tool to cache function results
It look like:
global $function_results;
$function_results = array();
function getMembers($conditions, $default = array('order' => 'name', array('abc', 'def'))){
//****Help need from here******
//make unique id from parameters value and function name
//ex: $uid;
//****to here******
global $function_results;
if(isset($function_results[$uid])) return $function_results[$uid];
else{
//do function logic...
}
}
(the function and its parameters are just an example)
Any suggestions?