Php Ellipsis

[Solved] Php Ellipsis | Php Frameworks Codeigniter - Code Explorer | yomemimo.com
Question : php ellipsis

Answered by : indian-gooner

$out = strlen($in) > 50 ? substr($in,0,50)."..." : $in;

Source : https://stackoverflow.com/questions/11434091/add-if-string-is-too-long-php | Last Update : Thu, 09 Jul 20

Question : php trim string if longer than

Answered by : taylor-hawkes

substr($str,0,50);

Source : https://stackoverflow.com/questions/11434091/add-if-string-is-too-long-php | Last Update : Thu, 06 Feb 20

Answers related to php ellipsis

Code Explorer Popular Question For Php Frameworks Codeigniter