hey there this problem stuck me out

how to display url like this

foreach ($parts[1] as $test)
  echo 'hehehe '. $test;

and the result is:

hehehe 9.domain.com

it just stuck me out

i'm already search the answer at least 5 hours :(

i do not want to parse another url because i can get it, but this problem stuck me out :(