Originally posted by badabing
but first, how do I read the individual numbers from a 3 digit int???
Well, once you've used the string-formatting functions, it's no longer really an int but a string. You can get at the nth character of a string (starting from 0) by going $string{n}.
You probably don't need a switch - or even an array (which was my first thought). If the images are image0.gif, image1.gif, etc., then "image".$string{0}.".gif" for example, will give you the filename for the image of the leftmost digit.