twittoris Posted September 15, 2010 Share Posted September 15, 2010 I would like to place the output of these node values into an array: foreach ($rows as $row) { /*** get each column by tag name ***/ $cols = $row->getElementsByTagName('td'); /*** echo the values ***/ echo $cols->item(0)->nodeValue.'<br />'; echo $cols->item(1)->nodeValue.'<br />'; echo '<hr />'; } If the echo $cols->item(0)->nodeValue.'<br />'; always returns 6 values how can I call the values of each node later? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.