Contributing
Posted: Fri Aug 29, 2003 11:00 am
I wrote a PHP function that I find usefull because I do a lot of for looping but also like my Month format to be long textual. Anyway I'm not really sure where to go to say hey maybe this should be part of PHP and I'm on so many websites I'll doubt I'll find my way back here for your suggestions so here's the function:
for($m=0; $m<12; $m++)
{
echo month_change($m),"<br>";
}
function month_change($n_month)
{
$t_month = array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
return $t_month[$n_month];
}
Anyway if someone reads this and knows where to submit things to be contributed you can take it and do that if you want I don't care about getting credit there probably is already something like this built in I just couldn't find but that's just it I couldn't find anything like this so I just wrote that. On the off change I do find my way back here a link to a page where you can contribute to PHP would be nice.
-Gordon
for($m=0; $m<12; $m++)
{
echo month_change($m),"<br>";
}
function month_change($n_month)
{
$t_month = array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
return $t_month[$n_month];
}
Anyway if someone reads this and knows where to submit things to be contributed you can take it and do that if you want I don't care about getting credit there probably is already something like this built in I just couldn't find but that's just it I couldn't find anything like this so I just wrote that. On the off change I do find my way back here a link to a page where you can contribute to PHP would be nice.
-Gordon