On Thu, 13 Mar 2003 23:17:02 -0500, daniel wrote about "RE: [PHP] trikky
string limit question" what the universal translator turned into this:
>never mind i worked it out
>
>function create_caption($content,$max_length,$primaryID,$ID) {
> if (strlen($
never mind i worked it out
function create_caption($content,$max_length,$primaryID,$ID) {
if (strlen($content) > $max_length) {
$paragraph_i=".";
$position=strpos($content,$paragraph_i);
if (is_integer($positio
hi there , i am trying to show news content , the page may get pretty huge if
they all show on the same page , i have been considering a caption of 255
chars max , i would like to know if i could prob limit the front to 255 chars
and if its between a word somehow show it till the last . probably
3 matches
Mail list logo