FILTER_FALSE
Description
With FILTER_FALSE
you remove all false
elements from the provided arguments.
Examples
This filters out all the false
values in the list evaluating to [1, 2, 3]
.
Here, we are only returning a certain provided email of a person if an information has_email
is true
. If that information is false, we then filter the list with FILTER_FALSE
leaving only emails in the list where has_email
was provided and true
.
Last updated