Php socket write problem

The problem i have is when the socket is writing values from an array is groups it all in a line instead of sending them one by one, is there a way to send them one by one instead of it grouping it.

 
case "listusers":
   send_Message_tu($socket, ">> ID | IPADDRESS | PORT");
 
   foreach($clients as $people) {
 
    send_Message_tu($socket, "$people[id] $people[ipaddress] $people[port]");
    //echo "$people[ipaddress]
";
   }
   break;