Hello dear friends,
If i've the following array results then how i can show it up !
array code
$urlByHost = array();
foreach (explode("\n", $_POST['url']) as $value) {
$parse = parse_url($value);
$urlByHost[$parse['host']][] = array(
'url' => $value,
'parse' => $parse,
'md5' => md5($value),
);
}
asort($urlByHost);
print_r($urlByHost);
results
Array
(
[www.bing.com] => Array
(
[0] => Array
(
[url] => http://www.bing.com/kee
[parse] => Array
(
[scheme] => http
[host] => www.bing.com
[path] => /kee_
)
[md5] => e69d3a5bb987448e30ec8559c3634caf
)
)
i want to show the host and md5 as
www.bing.com
e69d3a5bb987448e30ec8559c3634caf
how can i call the results and show it ! ~ thanks