Skip to content

Commit 84b7555

Browse files
committed
added checkAnyFlags example in readme
1 parent bd759c9 commit 84b7555

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ var_export($exampleFlags->checkFlag(ExampleFlags::FOO | ExampleFlags::BAR));
103103

104104
var_export($exampleFlags->checkFlag(ExampleFlags::FOO | ExampleFlags::BAZ, false));
105105
// true because one of the flags is set (FOO)
106+
107+
// alias of the above method
108+
var_export($exampleFlags->checkAnyFlag(ExampleFlags::FOO | ExampleFlags::BAZ));
109+
// true
110+
106111
```
107112

108113
##### Flag names example

0 commit comments

Comments
 (0)