In WordPress, it is very popular to show excerpt of a content which shows up to particular word limits.
In each and every cases it is not require to show the whole content rather than small content with limited words.
function wordCutter($str,$len) {
if(strlen(strip_tags(html_entity_decode($str)))>len)
{
$str = substr(strip_tags(html_entity_decode($str)),0,len);
$pos = strrpos($str," ");
$str = substr(strip_tags(html_entity_decode($str)),0,$pos).'...';
}
else
{
$str = strip_tags(html_entity_decode($str));
}
}
Pain in muscles and joints can be a problem in everyday life, whether it involves…
Most modern businesses spend a lot of time thinking about digital touchpoints. Websites, email campaigns,…
While TikTok and Instagram battle for users’ attention with short vertical videos, Elon Musk’s social…
When you are looking to apply for a mortgage the one thing that most people…
Once you've memorized basic blackjack strategy, it's time to delve deeper into the game. Advanced…
Yoga is no longer just a physical practice. Yoga is popular as a lifestyle practice.…