c02df18f78
This was the fastest thing I could think of. Would string searching the name be better? No user class can extend from Closure, so we're ok on that front.
12 linhas
204 B
PHP
12 linhas
204 B
PHP
<?php
|
|
|
|
$a = function() {};
|
|
$b = function() {};
|
|
$classes = get_declared_classes();
|
|
asort($classes);
|
|
foreach ($classes as $class) {
|
|
if (stripos($class, 'Closure') !== FALSE) {
|
|
var_dump($class);
|
|
}
|
|
}
|