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
Contributing
Moderator: General Moderators
I made a post a while back viewtopic.php?p=49315#49315 regarding this. I hoped to get enough material to do an article, or series, for phpdn. Wouldn't be anything like the scale of evilwalrus - just a bunch of "essential" utilities rather than complete scripts.
Many code submission type pages end up with the pearls hidden amongst the swine - or whatever it is - so I planned to pick out just the really useful and well-written ones. A rating system might be another, more democratic, way to do it.
There are a lot of plans afoot to add to the site, once the development team are able to set aside some time to get everything done.
Many code submission type pages end up with the pearls hidden amongst the swine - or whatever it is - so I planned to pick out just the really useful and well-written ones. A rating system might be another, more democratic, way to do it.
There are a lot of plans afoot to add to the site, once the development team are able to set aside some time to get everything done.