Get 1 paragraph only
Here is php script to get first paragraph in description;
$pos=strpos($description,”</p>”);$pos=$pos+4;echo substr($description,0,$pos);
+4 because </p> is 4 chars
This entry was posted on Thursday, August 12th, 2010 at 9:27 am and is filed under PHP. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


