Mah ripensandoci potresti
fare una cosa del genere
associato a quello di prima
Codice PHP:
<?php
$count = 0;
$string = "pippo pippo pippo"."\n";
$string .= "pippo pippo pippo"."\n";
$string .= "pippo pippo pippo"."\n";
$string .= "pippo pippo pippo"."\n";
$string .= "pippo pippo pippo"."\n";
$string = explode("\n",$string);
foreach($string as $snippets)
{
$count++;
if($count == 2)
{
$newstring .= "\n";
}
$newstring .=$snippets;
}
echo $newstring;
?>
Al posto di quel 2 ci puoi mettere
il valore che vuoi non so usando un count diviso
qc per esempio .
Non sarà cool ma it works