我想限制从xpath查询收到的结果数.
例如:-
$info = $xml->xpath("//*[firstname='Sheila'] **LIMIT 0,100**");
你看到了LIMIT 0,100.
LIMIT 0,100
xpath limit
limit ×1
xpath ×1