これまでのところ、私のコードは xPath クエリを使用してすべてのクラス 'forumRow' を取得しています。すべての「forumRow」クラスに一度存在するa要素のhref属性を取得するにはどうすればよいですか?
最初のクエリの結果から始まるクエリを実行できる時点で、ちょっと立ち往生しています。
私の現在のコード
            $this -> boards = array();
            $html = @file_get_contents('http://www.roblox.com/Forum/Default.aspx');
            libxml_use_internal_errors(true);
            $page = new DOMDocument();
            $page -> preserveWhiteSpace = false;
            $page -> loadHTML($html);
            $xpath = new DomXPath($page);
            $board_array = $xpath -> query('//*[@class="forumRow"]');
            foreach($board_array as $board)
            {
                $childNodes = $board -> childNodes;
                $boardName = $childNodes -> item(0) -> nodeValue;
                if (strlen($boardName) > 0)
                {
                    $boardDesc = $childNodes -> item(1) -> nodeValue;
                    array_push($this -> boards, array($boardName, $boardDesc));
                }
            }
            $Cache -> saveData(json_encode($this -> boards));