Hello, voici un script en php de content spinning écrit en php…

function spinnage($text){
if(!preg_match(‘/{/si’, $text)) {
return $text;
}
else {
preg_match_all(‘/\{([^{}]*)\}/si’, $text, $matches);
$occur = count($matches[1]);
for ($i=0; $i<$occur; $i++){
$word_spinning = explode(« | »,$matches[1][$i]);
shuffle($word_spinning);
$text = str_replace($matches[0][$i], $word_spinning[0], $text);
}
return  spinnage($text);
}
}

Edit : Cette fonction a été écrite par 512 banque : www.deliciouscadaver.com