示例#1
0
 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;
     }
 }
示例#2
0
function upper()
{
    return new F("upper", 1, function ($node) {
        return strtoupper(U::isNode($node) ? I::parseNode($node)->children()[0] : dom_import_simplexml($node)->textContent);
    });
}