Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php string left 10 characters

// singlebyte strings
$result = substr($myStr, 0, 5);
// multibyte strings
$result = mb_substr($myStr, 0, 5);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #string #left #characters
ADD COMMENT
Topic
Name
3+1 =