Thread:Project talk:Support desk/Hooks Definitions are confusing to me

I was looking at the ParserFirstCallInit hook, and I think it is confusing, unless someone can explain the notation. I see something like this:

function fnMyHook( &$parser ) { ... } $wgHooks['ParserFirstCallInit'][] = 'MyExtensionHooks::someExample';

Shouldn't the second line be: $wgHooks['ParserFirstCallInit'][] = 'fnMyHook';

I really don't understand how they tie together if I use someExample. Wouldn't I also have to define someExample and have it use the same function arguments and call fnMyHook?

Thanks.