Thanks for your reply!
I'm a newbie to PHP
I assume that these are the three lines I need?
With $textArray being the in the database I want to cut down.Code:<?php //Number of words in chunk of text $show = 22; //Extract chunk from array into an array $chunk = array_slice ($textArray, 0, $show); //Convert array into string $chunk = implode($chunk,' '); ?>
In my case $row_rsNewsItems['newsBody']
I have tried that and it won't work I guess I got it wrong.




Reply With Quote