I wrote this tiny function a while ago to make a unique id based on passed arguments. My question is, if there is a better (performance) way to solve that.
function id_make(/* POLYMORPHIC */)
{
return md5(serialize(func_get_args()));
}
echo id_make(__FILE__, 'something', ['item' => 'some_content']);