how to read the first 3 characters in a variable php code example Example: print only some characters of a string in php substr(string,start,length)