Hedefi kullanıcıların metin bir grup paragrafların saymaktır ...
(Ben bu egzersiz için her zaman büyük 5'ten paragrafları varsayıyoruz)
Sonra o yuvarlak paragraf 1/2 sayı, aşağı isteyen ve arasında (echo "yehhoo") bazı içerik girin.
Ben benim $newvalue çok iyi değil aldık şekilde anlıyorum, ayrıca bu konuda yardım istiyorum ...
<?php
$choppedup = explode("<p>",$node->field_long_body[0]['safe']);
$choppedpos = count($choppedup);
$choppedpos2 = $choppedpos/2;
$newvalue = floor($choppedpos2);
//I know this is working to here... the rest not so sure.
for($j = 0; $j < $choppedup; $j ++):
  print $choppedup[$j];
  if ($j == $newvalue):
    echo "yehhoo" ;       
  endif;
endif;
?>
Teşekkür ederim
 
			