Is there a way to break
or continue
an iteration of the built-in method array_map()
as you would in a normal for loop?
For example:
array_map(function (String s) {
if (condition is met){
continue;
}
return stuff;
}, $array_to_map);
array_filter
. What is your input and output? – Shawnee