DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php truncate string
$string = (strlen($string) > 13) ? substr($string,0,10).'...' : $string;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#php
#truncate
#string
ADD COMMENT
Topic
COMMENT
Name
6+8 =
Submit