Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit 64c079a

Browse files
authored
Update README.md
1 parent 48a76c8 commit 64c079a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ function isWeekend(DayOfWeek $dayOfWeek)
130130
if (date('w') == DayOfWeek::FRIDAY()->getValue()) {
131131
echo "Finally it is Friday!";
132132
}
133+
// or
134+
if (DayOfWeek::getEnumByValue(date('w')) == DayOfWeek::FRIDAY()) {
135+
echo "Finally it is Friday!";
136+
}
133137
```
134138

135139
### Tips & Tricks

0 commit comments

Comments
 (0)