private static function _print($value) { if (Util::isNode($value)) { Util::checkArity($value, 1); return print Interpreter::parseNode($value->children()[0]); } else { return print dom_import_simplexml($value)->textContent; } }
function upper() { return new F("upper", 1, function ($node) { return strtoupper(U::isNode($node) ? I::parseNode($node)->children()[0] : dom_import_simplexml($node)->textContent); }); }