Code: Select all
<?php
$string = "4,3+4,3+4,3+4,d/b+3+4,u/f+3+4";
$newstring = str_replace("2", '<img src ="http://www.hscripts.com/freeimages/icons/symbols/shapes/triangle/triangle-image8.gif">', $string );
$newstring2 = str_replace("4", '<img src ="http://www.crazymonkeygames.com/guide/Stackz/Images/Stackz_Small_Circle.jpg">', $newstring );
$newstring3 = str_replace("2", '<img src ="http://www.hscripts.com/freeimages/icons/symbols/shapes/triangle/triangle-image8.gif">', $newstring2 );
echo $newstring2;
?>What this is is me trying to replicate this, however changing the numbers to graphics (as demonstrated above in my code).
As you can see (from the website) numbers such as '4,3+4,3+4,3+4,d/b+3+4,u/f+3+4'
Check out the legend on the website and please help, there are so many things I need to include to make this faster.