red character from image in php code example Example: how to remove first character from string in javascript str = str.substring(1);