Create a function that will return an array containing the ASCII codes of each character from a string.