how to search in array and return all values or keys of element that contains the value searched for
<p>I want to create a function that returns all the values that contains the value searched for.</p>

<hr>

<p>for example:
I have an array of these values: "red", "green", "blue"</p>

<hr>

<p>if I searched for "re" the result would be: "red", "green" or the keys 0, 1</p>
