Can someone please explain why is the following code outputting some Chinese instead of breaking down the string passed in the function into an array.
<?php
// define URL
$url = "http://www.somewebsite.com:80/community/columns/trog/article.php?id=79&page=2";
// parse URL into associative array
$data = parse_url($url);
// print URL components
foreach ($data as $k => $v){
echo "$k: $v \n";
}
?>
thanks in advance!