function within a class function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Within a class function I have defined another function for use with the
usort() function. How do I reference it?

When it's not part of a class usort($arr,"cmp") works fine but when it's
within a class function I get this error:

PHP Parse error:  syntax error, unexpected T_STRING, expecting T_FUNCTION

Is it not in the scope of the class function?

-- 
"Memory is like an orgasm.  It's a lot better if you don't have to fake it."
		-- Seymour Cray (on virtual memory)
    Rick Pasotto    rick@xxxxxxxx    http://www.niof.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux