Jump to content
MakeWebGames

Recommended Posts

Posted

i done something similar at http://forbiddenage.com/ i done mine via JS but using php you can use str_replace like so

$string = date('d/m/Y H:i:s', $timestamp);

$find = array('/', ':', '1', '2', '3', ........);
$replace = array('<img src="img/dash.png" alt="" />', '<img src="img/colon.png" alt="" />', '<img src="img/1.png" alt="" />', '<img src="img/2.png" alt="" />', '<img src="img/3.png" alt="" />', ........);

$new_string = str_replace($find, $replace, $string);

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...