How to get an unique identifier for php closure ?

June 17, 2013

Right to the example…

$identifier = spl_object_hash(function(){
  // some function content

Simple as that.

Suggestions or problems ? Write a comment.

posted in how to ?, OOP, php by Ivan Gospodinow

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Leave Your Comment

Warning: Use of undefined constant XML - assumed 'XML' (this will throw an Error in a future version of PHP) in /home/c2kblate/sites/ on line 1048
Powered by Wordpress and MySQL. Theme by Shlomi Noach,