typeOf

typeOfreturns the underlying type of a value:typeOf $foo`

Note: None of these can test whether or not something implements a given interface, since doing so would require compiling the interface in ahead of time.

Back to top