it's been a while since I'm looking for something, I'm blocked for some time to know how to take keys from a value in a php array.
Here is my array where I start my research :
[It] => z
[is] => h
[soon] => y
[the] => c
[new] => w
[year] => e
[2017] => e
[!] => e
Starting with the value « y », I would like to get the words from another table from this same value than the key [soon] (= "y"), until time is reached this same value.
Here is an exemple of the other array :
[Here] => a
[is] => y
[my] => c
[favorite] => u
[team] => y
[.] => o
Here are the words than I would like to get from this sentence put in a array of my example :
is
my
favorite
I tried in many ways, for example with an "in_array" but without success...
Thank you so much to the person which will respond !
cyou want the outputmy favorite team. Same fora=>here is my favorite team.(because there is no other iteration ofa)