Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2000101

Re: [PHP-DEV] Call ZEND_FUNCTION in Zend_API From: Andrei Zmievski (andrei <email protected>)
Date: 10/10/00

On Tue, 10 Oct 2000, Andre Christ wrote:
> But my function test() needs to be exported to php as well as it needs to be
> used inside my module. How can I achieve to call this "exported" function from
> inside the module.

Abstract the guts of your test() function into another function called
test2(). Then your PHP_FUNCTION(test) will just be a wrapper that
accepts arguments and passes them onto the test2() function. Then you'll
be able to call test2() from other functions as well.

-Andrei
* Reality isn't all it's cracked up to be. *

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>