Page 1 of 1

trying to figure out the correct logic

Posted: Mon Jul 12, 2004 2:59 pm
by cayres
field contains data strings

1 2 3
1 3
1 2

I want to look at the string and replace the number with an image

Would you use >> if .. else statements, concatenated
or should I be using something else?

I guess its been a long week already!

Posted: Mon Jul 12, 2004 3:03 pm
by feyd
Code Snippets is the wrong forum. :roll:

Moving to PHP - Code

Posted: Mon Jul 12, 2004 3:26 pm
by PrObLeM

Code: Select all

$array = explode(' ' , $data);
foreach($array as $number)
{
	//replace the numbers with images here
}

Posted: Mon Jul 12, 2004 3:30 pm
by cayres
wow - I was on the wrong track!

Thank you