I think you are trying to assign a function to a variable (I know this is something you can do with LUA, and I guess Ruby, but not with PHP). You could just check for the ext_validate() function from within myClass::c_validate.
class myClass {
function c_validate( $something ) {
if( function_exists( 'ext_validate' ))
{
return ext_validate( $something );
}
// Carry on here if ext_validate() doesn't exit
return $something_validated;
}
}
/* This function is optional */
function ext_validate( $something ) {
}
$myVal = new myClass();
$validated = $myVal->c_validate( $something );