There are two arrays:
$strings = array('Apple', 'Banana', 'Orange');
$substrings = array('pp', 'range');
I want to get an array which contains all the strings, that match the substrings:
Array
(
[0] => Apple
[2] => Orange
)
Or with new indices:
Array
(
[0] => Apple
[1] => Orange
)