Itchy: date

Hallo hat wer von euch eine ahnung warum mir dieser code:

$jahr = date ("Y");
 $monat = date ("n");
 $date=getdate(mktime(0,0,0,1,$monat,$jahr));
 $day=$date[wday];

diesen Fehler meldet??:

Notice: Use of undefined constant wday - assumed 'wday'

mfg Itchy

  1. hi,

    Notice: Use of undefined constant wday - assumed 'wday'

    http://www.php.net/manual/de/language.types.array.php#language.types.array.foo-bar

    gruß,
    wahsaga

    --
    /voodoo.css:
    #GeorgeWBush { position:absolute; bottom:-6ft; }
  2. Ahoi Itchy,

    $day=$date[wday];
    diesen Fehler meldet??:
    Notice: Use of undefined constant wday - assumed 'wday'

    wie wärs wenn du das machst was dir die fehlermeldung meldet und
    $day=$date['wday'];
    machst?

    MfG