xor83 Posted February 27, 2009 Share Posted February 27, 2009 I trying to parse HTML Table tags and get all the values in a Array. How can I get values from that array One-by-One. I have tried many array sample but when I try to print this array it only returns series of value "Array" not the value. see this image how that array look like ---------------------------------------------------------------------------------------- I want that first it shows value for node "1" value...1,2,3,4 and so on Any help Link to comment https://forums.phpfreaks.com/topic/147167-array-values/ Share on other sites More sharing options...
rhodesa Posted February 27, 2009 Share Posted February 27, 2009 <?php foreach($tableArray as $array){ print_r($array); //Prints the entire array...for debug purposes print $array[2]; //Prints 'Yesterday' } ?> Link to comment https://forums.phpfreaks.com/topic/147167-array-values/#findComment-772575 Share on other sites More sharing options...
xor83 Posted February 27, 2009 Author Share Posted February 27, 2009 Thanx rhodesa Link to comment https://forums.phpfreaks.com/topic/147167-array-values/#findComment-772671 Share on other sites More sharing options...
xor83 Posted February 28, 2009 Author Share Posted February 28, 2009 One more help How to get values from this array? Link to comment https://forums.phpfreaks.com/topic/147167-array-values/#findComment-773227 Share on other sites More sharing options...
xor83 Posted February 28, 2009 Author Share Posted February 28, 2009 Done foreach ($urls as $k => $v1) { foreach ($v1 as $v2) { $A1= $v2[0]; } //echo "\$urls[$k] => $v.\n"; } Link to comment https://forums.phpfreaks.com/topic/147167-array-values/#findComment-773381 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.