take 10 character from string using php
snippet in php

php get first 5 characters of string

user3957

$result = substr("Hello How are you", 0, 5); //first 5 chars "Hello"

take 10 character from string using php

user2937

$return_string = substr("Hi i am returning first 10 characters.", 0, 10);
Output:
"Hi i am re"