Jump to content

make brief to contents


vividona

Recommended Posts

I used this code

 



$limit = 120;

if (strlen($summary) > $limit)
$summary = substr($summary, 0, strrpos(substr($summary, 0, $limit), ' . . .'));

 

This code ok in English Language it counts letters fine

but it is not work fine if I insert Arabic text. It counts Arabic encoding characters.

Link to comment
https://forums.phpfreaks.com/topic/251673-make-brief-to-contents/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.