laravel in array blade 1

laravel in array blade

@if(in_array($val, $array))

Here is what the above code is Doing:
1. We’re looping through the array of values that we want to check against.
2. We’re checking if the value is in the array.
3. If it is, we’re adding the value to the array.

Similar Posts