Question

Say I have a variable $foo. I'd like to use $foo castable as element(), but I can't use a node type after castable.

Was it helpful?

Solution

$foo instance of element() does the trick.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top