PDA

View Full Version : Foreach...



Romanity
10-05-2007, 04:19 PM
Right, say for example i wanted to seperate each letter of anyword... lets say HABBO.

How would I do it?

In the end it would be like:



$letters = FUNCTION NEEDED ($string); //In this case the word HABBO
foreach($letters AS $le){
echo("$le.gif");
}


So it would replace the word with a letter for each of the letters =] All i need is the function please ;D

Edit: Nvm, got it =]

Want to hide these adverts? Register an account for free!