Mailinglisten-Archive |
> function ($x) {
> $heute = mktime (0,0,0, date ("m"), date ("d"), date ("Y"));
> $tag_heute = (int) strftime ("%j", $heute);
> $tag_x = mktime (0,0,0, date ("m"), date ("d") - $tag_heute + $x, date
> ("Y")); //<--------
> $x_monat = (int) strftime ("%m", $tag_x);
> }
vieeeel zu umständlich...
function get_month( $day )
{
return date("m", mktime(0,0,0,1,$day));
}
*egon beruhig* es steht im manual :)
gruss
daniel
/*--
daniel beulshausen - daniel_(at)_php4win.de
using php on windows? http://www.php4win.de
php::bar PHP Wiki - Listenarchive