i'm unsure if i need to use an array (i'm a newbie to php, the most i've done is make text appear in random color)... anyhow, i want to pass a string to a function that will decrement a color value for each character. here is what i have so far...
<?
function red($str) {
$red = rand(60, 99)
/** first 2 of the six hex code numbers
* the other 4 will be light grey (neutral)
* so the string will fade or darken
* from the first red value
**/
for (....) // need help here !
echo(....) // i've got this part figured
}
thanks