[pmwiki-devel] PmWiki math & Is a function defined?

The Editor editor at fast.st
Fri Mar 9 11:56:42 CST 2007


Two quick question about php.

1.  Is there a function in php which evaluates simple arithematic
expressions beside eval()?  That is something that will do basic math
operators but ignore functions etc.  Guess not or someone would have
come up with a good math module before now...

2.  Is there a way to tell if a function is defined? I want to call a
function but don't know if the other module is enabled, and want to
avoid an error if it is not defined.  Not sure how to do this.

Thanks in advance!

Cheers,
Dan



More information about the pmwiki-devel mailing list