mutate the original array to filter out the values specified in PHP
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
PHP
🤖 Code Explanation
This code is written in PHP. It creates an array called $arr, which contains the numbers 1 through 5. It then creates a second array called $filter_out, which contains the numbers 2 and 4. Finally, it loops through $arr and prints out each number that is not in $filter_out.
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
More problems solved in PHP
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968332.png)