get character at index string php code example Example: print only some characters of a string in php substr(string,start,length)