I have tried using spl_object_hash, however it apparently doesn’t work with function objects.
So how can this best be done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A function object is an object like any other.
spl_object_hashshould work for them as well. I also cannot find any reference in the documentation about this not working.I actually tried it, and it seems to work just fine: