Re: [PHP] Re: function within a class function

2010-06-21 Thread Gary .
On Mon, Jun 21, 2010 at 10:49 AM, Pete Ford wrote: > On 21/06/10 00:45, Rick Pasotto wrote: > I think that's right - doesn't the manual describe this sort of thing about > using callback functions that are class members? Yes. http://www.php.net/manual/en/language.pseudo-types.php#language.types.

[PHP] Re: function within a class function

2010-06-21 Thread Pete Ford
On 21/06/10 00:45, Rick Pasotto wrote: 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 er