Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Wochenende in PHP bestimmen...

Empfohlene Antworten

Habe nen Kalender gemacht der alle Tage im Monat ausgibt also von 1 bis 31 oder 29 usw.

Möchte jetzt aber das die Wochenden da nicht mit reinkommen. Weiss einer wie ich bestimmen kann welcher Tag ein Wochende ist? So das ich die Weekends rausschmeissen kann?

DANKE

Himon

Sorry kann ich jetzt gar nichts mit anfangen! Ok ich kann in der Theori eine Zahl von 0 bis 6 bekommen. Aber wo kann ich denn das DAtum einsätzen von dem ich wissen will obs 0 oder 6 ist? Habe ich irgendwie nicht wirklich gerallt.

gruss

Himon

Hm, ein bisschen scrollen und lesen und du hättest das hier gefunden:

// Ausgabe: July 1, 2000 ist ein Samstag

echo "July 1, 2000 ist ein " . date ("l", mktime(0,0,0,7,1,2000));

Das mit w und du bekommst den Wochentag als Nummer:

$nummer = date ("w", mktime(0,0,0,7,1,2000));

Gruß Jaraz

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.