php echo first 3 characters of date month code example Example: print only some characters of a string in php substr(string,start,length)