ورودی
شکل تابع:
class Listeners {
public static function run2($name, &...$args);
}
خروجی
خروجی تابع:
bool
مثال
مثال #1:
Listeners::listen('edit', function(&$text) {
$text = 'Edited';
});
// ...
$text = 'Hi';
Listeners::run2('edit', $text);
echo $text; // Edited
   قبلی
اجرای شنونده دلخواه