I have a text something like this:
$sText =
"www.domain.com
www.domain.com
www.domain.com
www.domain.com
www.domain.com
...";
Now I want to spread the domains to subdomains (e.g. 3 sub-domains), so the result should look like this:
$aSubs = array("www.sub1.domain.com", "www.sub2.domain.com", "www.sub3.domain.com");
$sResult =
"www.sub1.domain.com
www.sub2.domain.com
www.sub3.domain.com
www.sub1.domain.com
www.sub2.domain.com
..."
Thanks for help...