Hay demasiadas formas de hacerlo, por ejemplo, ésta:
Código PHP:
Ver original$frase='Subdomains are URLs for different sections of your website. They use your main domain name and a prefix.';
$final = null;
for($i = 0; $i < count($ex); $i++) $final .= ($i != 0 && $i % 10 == 0) ? '/'.$ex[$i].' ' : ' '.$ex[$i];
echo $final;
¿Por qué no mejor lees sobre PHP y tú mismo confeccionas tu función? =/