Jump to content

^1Very ^4Query ^7Much ^3Color

Recommended Posts

See if this helps.

<?php $hostname = "^3NET-JAM.com ^2(HARDCORE)"; $c_pattern = array( "^0", "^1", "^2" , "^3", "^4", "^5", "^6", "^7", "^8", "^9", ); $c_replace = array( '</font><font color="#000000">', '</font><font color="#FF0000">', '</font><font color="#00FF00">', '</font><font color="#FFFF00">', '</font><font color="#0000FF">', '</font><font color="#00FFFF">', '</font><font color="#FF00FF">', '</font><font color="#FFFFFF">', '</font><font color="#A0A0A0">', '</font><font color="#000000">', ); $hostname = str_replace($c_pattern, $c_replace, $hostname); echo $hostname; ?>


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...