Accessing a function in a class
Posted: Mon Jun 25, 2007 7:02 pm
I want to use preg_replace_callback() which works fine unless I'm trying to use a function from a class. This is due to me not being able to get the function, not even through function exists.
All of those echo 'no.' Anyone know what I'm doing wrong?
Code: Select all
echo function_exists("FunctionName") ? 'yes' : 'no';
echo function_exists("self::FunctionName") ? 'yes' : 'no';
echo function_exists("ClassName::FunctionName") ? 'yes' : 'no';