Re: [PECL-DEV] Callling callbacks
[email protected] (Stanislav Malyshev) Wed, 21 Apr 2010 13:23:10 -0700
| Newsgroups | php.pecl.dev |
|---|---|
| Organization | Zend Technologies |
| Message-ID | <[email protected]> |
Hi! > What is the best way to have a function accept an arbitrary callback (be > it a string, array or closure in case of PHP 5.3) that is compatible > with PHP 5.2 and 5.3? In 5.3+, you should use "f" parameter character. Unfortunately, in 5.2 there was none, so you'd probably have to have different code in 5.2 branch. -- Stanislav Malyshev, Zend Software Architect [email protected] http://www.zend.com/ (408)253-8829 MSN: [email protected]