Lines Matching refs:n
13 echo "--- $name ---\n";
15 echo "nodeData: " . $nodeData . "\n";
20 test($nodes, "asXml", fn ($n) => $n->asXml());
21 test($nodes, "attributes", fn ($n) => $n->attributes());
22 test($nodes, "children", fn ($n) => $n->children());
23 test($nodes, "getNamespaces", fn ($n) => $n->getNamespaces());
24 test($nodes, "xpath", fn ($n) => $n->xpath("/root/a/b"));
25 test($nodes, "var_dump", fn ($n) => var_dump($n));
26 test($nodes, "manipulation combined with querying", function ($n) {
27 $n->addAttribute("attr", "value");
28 (bool) $n["attr"];
29 $n->addChild("child", "value");
30 $n->outer[]->inner = "foo";
31 (bool) $n->outer;
32 (bool) $n;
33 isset($n->outer);
34 isset($n["attr"]);
35 unset($n->outer);
36 unset($n["attr"]);
37 unset($n->child);