I have an array, $my_array, containing n element and a string, $my_string. I want to check if ALL the elements of $my_array are in $my_string. The order in which they are found in the string is not important as long as they are all there. I'm looking for the most efficient solution to get a TRUE only if all of the elements are present.
TRUE:
$my_array = array("big", "blue", "sky", "dog");
$my_string = "my big dog loves the blue sky";
FALSE:
$my_array = array("big", "blue", "sky", "dog");
$my_string = "the big blue sky";
array_difforarray_intersect, if you do something likeexplode(' ', $my_string).