Hello!
I'm trying to "explode" a variable, which is a word, into it's component letters.
For example:
<?
$name = "John";
$name_letter = explode("","$name");
// I realize that you can't explode nothing because a delimiter doesn't exist
print "$name_letter[0]";
// the result would be the letter "J"
print "$name_letter[1]";
// the result would be the letter "o"
// and so on ...
?>
I have been searching the 'net all day for an example of how to do this. I understand that if the variable name contained elements that could be used to explode the word, however, that's not how I want the information inputted originally.
My intention is to have the name display on the page in a graphical format from images that I created. So the end result would be something like this:
<IMG src="j.gif" width=30 height=30>
<IMG src="o.gif" width=30 height=30>
<IMG src="h.gif" width=30 height=30>
<IMG src="n.gif" width=30 height=30>
If someone could help me, I would really appreciate it.