Answers for "how to limit text in php"

PHP
1

php limit string length

if (strlen($str) > 10)
   $str = substr($str, 0, 7) . '...';
Posted by: Guest on July-17-2020
0

word limit in php

echo str_word_count("word count function");
Posted by: Guest on August-01-2021

Browse Popular Code Answers by Language